How can we get the IP address of the user in Laravel

Laravel get ip address from request Hello friend in this post I going to show you how to get users Ip address in Laravel 5.4 and save it is database. public function trackUserActivity(Request $request){ $user_activity=new UserActivity(); // getting  logged in user info from laravel Auth $user_activity->user_id=Auth::id(); // Getting ip address of remote user $user_activity->ip_address=$request->ip(); $user_activity->save(); […]

Read More

Laravel advanced interview questions and answers

Laravel advanced interview questions and answers

Laravel interview questions experienced laravel technical interview questions 1.Define Active Record Implementation. How to use it Laravel ? Active Record Implementation is an architectural pattern found in software engineering that stores in-memory object data in relational databases. Active Record facilitates the creation and use of business objects whose data is required to persistent in database. […]

Read More

Benefits of Laravel over other Php frameworks

Laravel benefits over other php framework Setup and customization process is  easy and fast as compared to others. Inbuilt Authentication System. Supports multiple file sytems Pre-loaded packages like Laravel Socialite, Laravel cashier, Laravel elixir,Passport,Laravel Scout. Eloquent ORM with PHP active record implementation.  Built in command line tool “Artisan” for creating a code skeleton ,database structure […]

Read More