Category Archives: laravel

Laravel error: permission denied

I setup a virtual machine for development on my pc with PuPHPet and when I setup Laravel I got the following error when I tired to access the site in my browser The stream or file “/var/www/myproject/storage/logs/laravel.log” could not be opened: failed to open stream: Permission denied” I looked this error up online and all I… Read More »

Using Package Auto-Discovery In Laravel 5.5

Auto-Discovery feature in Laravel 5.5 is pretty cool. It makes adding packages a little bit easier(or removing them). We are going to use anhskohbo no no-captcha package as the example on how to use it. Now we need to use the following command to add the example package to the composer file. composer require anhskohbo/no-captcha… Read More »

Setting Up Mailgun With Laravel 5

We are going to setup Mailgun to work with sending emails in Laravel. Its easy enough to setup and with mailgun you can send 10,000 emails a month for free which is great. Setting Up Mailgun Account After sigining up to Mailgun, under Domains tab, click on add new domain. It’s best when entering your… Read More »

Restrict Access to Admins In Laravel

I wanted to be able to have users and admins use the same login form and the admins have the same access as the users but with certain parts of the site only for admins without having to create a new table in the database as well. Edit Database Migration Firstly we are going to… Read More »

Setting Up A Test Server For Laravel

I always used xmapp on windows to test the code i write before running it on a production server which was fine on till I started running into problems with one of my projects which rfine on my PC but not on the production server. So decided to look around for a good option for… Read More »