Category Archives: Laravel

Turn on maintenance mode in laravel

Rakesh Sharma      No Comments  

Turn on maintenance mode in laravel using artisan commands If you are working with laravel. There is all hard task you can do simply. That’s why i like laravel. A simple example of it’s simplicity, If you are working on your live site and want to turn on maintenance mode… Read more »

How to use captcha in Laravel 5

Rakesh Sharma      7 Comments  

How to use captcha in Laravel 5 – Google reCAPTCHA Sometimes we should use captcha on our form to prevent spams, bots etc. There is also more captcha open source library, mostly used library is Google reCAPTCHA. Which is freely and easy to use for both client and server side…. Read more »

Connect multiple databases in laravel

Rakesh Sharma      6 Comments  

How to Connect multiple databases in laravel 5 Working with databases and running queries is simple in laravel. Also you can easily work with connect multiple databases in laravel. In laravel database configuration for your laravel application is located at config/database.php. This file contain database connections. You may define all… Read more »

Post data using ajax in laravel 5

Rakesh Sharma      23 Comments  

Post data using ajax in laravel 5 to controller If you are going to work with ajax data post to controller or route in laravel 5. There are some need to get ajax call work correctly. Your requirement is csrf token. A default feature in Laravel is it’s automatic CSRF… Read more »

Access denied for user ‘homestead’@’localhost’ laravel 5

Rakesh Sharma      24 Comments  

How to solve error – Access denied for user ‘homestead’@’localhost’ laravel 5

After install laravel 5 successfully and setup database configuration correctly. when i go to auth/register page and filling up user details and click on submit button to process and i found an error (Access denied for user ‘homestead’@’localhost’ laravel 5) like below :-

PDOException in Connector.php line 47: SQLSTATE[28000] [1045] Access denied for user ‘homestead’@’localhost’ (using password: YES)

so i think there is problem with database connection or may be issue with user permission. so i tried more time to solve and serched over internet for solution. after more search i found a solution and really a good solution so i am sharing this solution for solve this type of error may be some of string different in this error like [28000] or [HY000] etc.

Install laravel via laravel installer windows

Rakesh Sharma      18 Comments  

install laravel via laravel installer windows xampp or wamp

Laravel 5 has new method to install via laravel installer on all os like windows, ubuntu, mac etc and for xampp or wamp. install laravel via laravel installer method on windows is much faster then composer. you will get a quickly installed laravel in few hands. there is only require few commands to install and will be instant install so it’s a quick method for laravel 5.
Below i am sharing install laravel via laravel installer on windows xampp and wamp.

How to install laravel on ubuntu lamp

Rakesh Sharma      22 Comments  

How to install laravel on ubuntu lamp (via laravel installer, composer)

Now time of frameworks in php like laravel, codeigniter etc and easy to install php frameworks on local server like lamp, xampp etc. Below we will see installation steps of a php framework laravel on ubuntu lamp. Let’s see how to install laravel on ubuntu lamp via laravel installer and via composer. for this we need some server requirements, some of software installation.
We need some system requirements to install laravel framework :