Sometimes you want to make a field unique in a database table so that duplicity should be avoided. The very common case is email address. Laravel provides useful tools to achieve this, including the Unique validation rule. However to make…
Category: Laravel
Send email with Amazon AWS SES in Laravel 8/9
Sending emails using Laravel is quite easy. All you need to do is to configure your MAILER service properly. In this simple tutorial I am going to show you two methods to configure your Laravel application to send emails with…
How to Create Custom Routes for protected Admin/Manager area in Laravel 8
In my last article I showed you How to Create Custom Route File in Laravel 8. In that article I created an admin custom routes which is accessible at http://127.0.0.1:8000/admin. In this articles I will show you how you can…
How to Create Custom Route File in Laravel 8/9/10
Routes are the entry points to a Laravel application. There are two route files available in Laravel 8 by default. These are web.php and api.php. If required one can create custom route file in Laravel easily. In this article I…
How to run migrations by schema name in Laravel
Migrations are like version control for your database, allowing your team to define and share the application’s database schema definition. Typically, migrations will use Schema facade to create and modify database tables and columns – Laravel Documentation In general, one…
Simplest way to create and include a helper functions file in Laravel 6/7/8/9
Helper functions are time saving tools in any application. Laravel comes with many built-in useful PHP functions which may include Array & Objects functions, String functions, URL functions and many more. Please see the complete list before you decide to…
Useful functions in Laravel and its Usage explained
There are many useful “helper” PHP functions in Laravel. According to documentation, “Many of these functions are used by the framework itself; however, you are free to use them in your own applications if you find them convenient.”
How to Clear cache in Laravel 10/9/8/7
In this simple tutorial I will show you how to clear cache in Laravel application easily. I will also show you the artisan commands to run and I will also show you how you can create a simple function to…
Using global constants and arrays in Laravel 5
Most of the time developers need to create common and global set of constants, variables and arrays which could be used anywhere in your application. There is a handy way to do it in Laravel 5.
Install Laravel on Windows – 3 minutes install
Install Laravel on Windows – 3 minutes install Install laravel via composer installer on windows xampp or wamp Laravel 5 can be installed via composer on all operating systems like Windows, ubuntu, mac. Using the following quick guide one can…