php artisan migrate – error [PDOException] SQLSTATE[HY000] [2002] No such file or directory

/Applications/AMPPS/www/blog/config/database.php I changed the host from localhost into 127.0.0.1 and it worked: ‘host’ => env(‘DB_HOST’, ‘127.0.0.1’),

Read More

SQLSTATE[HY000] [1045] Access denied for user ‘homestead’@’localhost’ (using password: YES)

When I run the command “php artisan migrate” I get the following error message: [PDOException]  SQLSTATE[HY000] [1045] Access denied for user ‘homestead’@’localhost’ (usin g password: YES)        Solution: make sure that you have changed the configs from /Applications/AMPPS/www/blog/config/database.php make sure

Read More

gulp: command not found

After some hours of searching I found the fix and explanation here: http://blog.dwaynecrooks.com/post/110903139442/why-do-we-need-to-install-gulp-globally-and   # Step 1 npm install -g gulp # Step 2 npm install –save-dev gulp # …

Read More

Vhost and Laravel

To be able to access the new project(blog) from the localhost by accessing http://blog.local  you must find and edit the file httpd-vhost.php (try Applications/AMPPS/apache/conf/extra/httpd-vhost.php): <VirtualHost 127.0.0.1:80> ServerName blog.local DocumentRoot “/Applications/AMPPS/www/blog/public” <Directory “/Applications/AMPPS/www/blog/public”> Allow From All RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f

Read More

Add PATH so the laravel executable can be located by your system

A first problem for me was thatI didn;t know where to add ~/.composer/vendor/bin . I searched on the internet and I read all kind of answers like edit ~/.basrc or ~/.bash-profile or ~/.z something. The quick answer is to give the

Read More