Category: Laravel


Laravel – Call database seeder class from controller

Some times you may need to see the results of specific seeder class in a web page instead of terminal. Thus instead of calling the seeder class via terminal:

Call the class from...


Adding Valet missing path: ~/.composer/vendor/bin

Laravel valet is a wonderful environment to create new Laravel project without the need to download any localhost server like Wampp, Xampp, Ampps. After downloading Homebrew (or just updating it to the last version),...


Best resources and courses to learn Laravel PHP framework

There are a bunch of tutorials out there and many good websites to learn Laravel PHP framework. The best place to start with is, here you can learn from the best developers called...


PHP – Dealing with files and directories

Today with Laravel PHP Framework, you still need to write PHP native code. In the web, there are a lot of helpful programming packages that help each one of us from reinventing the wheel...


Laravel – Optional Route Parameters

Hey, In this small post, I will show you an example of how we can use optional route parameters in Laravel PHP framework. Let’s assume that in your view file [‘book.create.blade.php’] you have the...