How to use where not in clause in Laravel?WhereNotIn method of laravel db builder and Eloquent is used to select records that are not in given array.Where not in ExamplewhereNotIn ...
How to get the server IP with Laravel?Use below code to get IP address server in Laravel.request()->server('SERVER_ADDR');
You can also use old php way to get server ip by $_SE ...
How to validate phone number in Laravel Framework?Laravel did not provide any inbuilt validation method for validating phone no. The only way to validate phone no in laravel is thr ...
How to stop laravel server?Well you have started your laravel server successfully now you want to stop server. To execute php artisan serve stop simply goto your commnad line where ...
How to fix php artisan serve not working ?Reasons why php artisan serve not workingYou are running php artisan serve command in wrong directory. php artisan serve is laravel comma ...
How to use raw queries in Laravel?Laravel is an awesome framework. It provides you flexibilities for development. Once you realize it’s cool features, you will just love the fram ...
How to Run migrations in LaravelRunning migration in Laravel is easy task. Below are few artisan commands for to run database migration in Laravel Framework. 1. php artisan migrat ...
What is php artisan?PHP artisan is the command line interface/tool included with Laravel. It provides a number of helpful commands that can help you while you build your applicatio ...
Laravel 6 new FeaturesLaravel 6 comes many new features and enhancements, we have listed some themSemantic Versioning SupportCompatibility with Vapor, a serverless deployment platf ...
How to change column type in Laravel MigrationIn this trick we will see how to change column data type for example we are going to change a field from varchar to longText. To do th ...