Author Archives: Rakesh Sharma

About Rakesh Sharma

Sharing things which i have done and which i found interesting.

How to install Yii2 on windows xampp

Rakesh Sharma      No Comments  

How to install Yii2 on windows xampp using composer or manually There are two ways in which you can install yii2 on your windows xampp server using composer tool or manually. Lets take a glance on both the steps. Best way to install yii2 on windows xampp is using composer… Read more »

How to install Yii2 on ubuntu

Rakesh Sharma      No Comments  

How to install Yii2 on ubuntu using composer Best way to install Yii Framework is using composer. Below we will see installation steps of a php framework yii2 on ubuntu. Let’s see How to install yii2 on ubuntu using composer. Before composer install we need some more packages installation. In… Read more »

Form validation with angularJS

Rakesh Sharma      5 Comments  

How to use form validation with angularjs If we want to implement client-side form validation try to make your form validation with angularjs, a new js framework available that’s angularjs. AngularJS includes cool features to make client-side form validations easy. There are many form properties and directives are available to… Read more »

Post data using ajax in laravel 5

Rakesh Sharma      24 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      27 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.