I’m getting error “Class ‘Predis\Client’ not found” in Laravel 5.2

First download the REDIS to your system (if you haven’t already installed it). Go to the folder where you have downloaded the redis and run this command: cd your-redis-folder-name make Go to your project directory and install composer: composer require predis/predis Go to your .env file and add Queue driver: QUEUE_DRIVER=redis use Mail::queue() to send … Read more

laravel 5.3 new Auth::routes()

Auth::routes() is just a helper class that helps you generate all the routes required for user authentication. You can browse the code here https://github.com/laravel/framework/blob/5.3/src/Illuminate/Routing/Router.php instead. Here are the routes // Authentication Routes… $this->get(‘login’, ‘Auth\LoginController@showLoginForm’)->name(‘login’); $this->post(‘login’, ‘Auth\LoginController@login’); $this->post(‘logout’, ‘Auth\LoginController@logout’)->name(‘logout’); // Registration Routes… $this->get(‘register’, ‘Auth\RegisterController@showRegistrationForm’)->name(‘register’); $this->post(‘register’, ‘Auth\RegisterController@register’); // Password Reset Routes… $this->get(‘password/reset’, ‘Auth\ForgotPasswordController@showLinkRequestForm’); $this->post(‘password/email’, ‘Auth\ForgotPasswordController@sendResetLinkEmail’); $this->get(‘password/reset/{token}’, ‘Auth\ResetPasswordController@showResetForm’); … Read more

My Laravel 5.2.10 Sessions wont persist

Laravel’s middleware class \Illuminate\Session\Middleware\StartSession is responsible for starting your session. Before L5.2, this ran on every request because it was part of the global middleware stack. Now, it’s optional because L5.2 wants to allow for both a web UI and an API within the same application. If you open up app/Http/Kernel.php, you’ll see that the … Read more