Changing Your Authentication Model
Problem You need the change the authentication model from the default User. Your application is using namespaces or you…
Problem You need the change the authentication model from the default User. Your application is using namespaces or you…
laravel Problem You want your application’s users in a different table than users. Your application is using database authentication…
Problem You want to create a form input field. Instead of writing HTML directory you want to use Laravel’s…
Problem You want to see if a file exists. You know you can use the PHP file_exists() method, but…
Problem The default Nginx web page shows for your project. You have Nginx installed and have created a Laravel…
Problem You want to create a cookie. Solution Use Cookie::make() You can use this method to generate a new…
Problem You want to check a cookie value sent to your application. You know you could use the PHP…
Problem You want to start a form. You know you could use the HTML <form> tag directly, but want…
Problem You want to see if a user is logged in. You know Laravel automatically keeps the authenticated user…
Problem You want to assign a variable in a Blade template. Solution Blade does not provide a command to…
Problem You want to speed up Laravel’s cache. You know by default Laravel uses the file cache driver. You…
Problem You want to determine if a translation exists for a particular key. Solution Use the Lang::has() method. To…
Problem I installed Laravel 5.0 properly by cloning in git, and composer install, when I ran it to browser…
Problem The default Apache web page shows for your project. You have Apache installed and have created a Laravel…
Problem You want to find files matching a pattern. Solution Use the File::glob() method. $log_files = File::glob(‘/test/*.log’);if ($log_files ===…
Problem You want to copy an entire directory to another location. You want to copy it recursively, all files…