Tag : Server


Laravel 5 - Authenticate user in NodeJS with socket io using JWT.

Today, i am going to show you how to authenticate user node js using JWT and socket io in Laravel 5.3. It is very very important because if you are working with chat application or messengers system etc with user then you have to use JWT token because it is very safe and secure way. If we work on chat module with socket io but someone can easily hack our code. At that time we require to check given JWT token is valid or not using <strong class="path">socketio-jwt</strong> package of Node. socketio-jwt package thorough we can simply authentication with user and identify that token is valid .....

By Hardik Savani | September 25, 2016 | | 7204 Viewer | Category : Laravel Installation Server Node JS Socket.io JWT
READ MORE

Connection for controluser as defined in your configuration failed - Ubuntu phpmyadmin Resolve?

When i was working on my PHP project since last 1 year on my current system and phpmyadmin was working very well. but one day i was working on my prjects and electricity off suddenly and when electricity on, i start my system again and open localhost/phpmyadmin, then i found following error: <pre>Connection for controluser as defined in your configuration failed.</pre> I did try lot to solve. i also reboot my ubuntu 14.04 system again but i found still that issue. i was very disappointed from this issue. But when i open my PHP Laravel framework project i found bellow issue: <pre>can't connect.....

By Hardik Savani | April 8, 2016 | | 839 Viewer | Category : Ubuntu
READ MORE

How to get user agent value in Laravel 5?

If you are work on laravel 5 application and you require to get user agent(user agent mean user browser details like firefox, cherome etc) then you can get easy. you don't need to use $_SERVER variable like native PHP, but laravel 5 provide Request facade. you can fetch easy using following example: <strong class="example">Example</strong> <pre class="prettyprint lang-php"> public function ImpressionCount(Request $request) { $impre['useragent'] = $request->server('HTTP_USER_AGENT'); $input['ip'] = $request->ip(); print($input); } </pre>

By Hardik Savani | April 5, 2016 | | 3472 Viewer | Category : Laravel
READ MORE

    How to get filename from file path in MySQL?

    How to get filename from file path in MySQL?

    Open Post

    PHP - How to make dependent dropdown list using jquery Ajax?

    PHP - How to make dependent dropdown list using jquery Ajax?

    Open Post

    How to implement lazy loading image with example for your website?

    How to implement lazy loading image with example for your website?

    Open Post

    How to install composer using command line in ubuntu ?

    How to install composer using command line in ubuntu ?

    Open Post

    How to create custom facade in laravel 5.2?

    How to create custom facade in laravel 5.2?

    Open Post

    Codeigniter 3 and AngularJS CRUD with Search and Pagination Example.

    Codeigniter 3 and AngularJS CRUD with Search and Pagination Example.

    Open Post