• When you use Homestead, all files you work with are stored physically on your local directory that is mapped through Homestead.yaml file. You simply don’t need to worry about these file when you have to destroy the box itself. The problem s with corresponding databases. All databases live within the box, so destroying it means… read more

  • Recently I did a handy feature to allow my users upload their own files into my Laravel application. I decided to use built-in Filesystem storage. Everything worked like a charm until I reached to a significant problem – how to display a resource uploaded by some user when the storage directory is obviously located outside… read more

  • If you work with migrations in your Laravel application, sooner or later you may see an error that will forbid you to truncate a table that is referenced in a foreign key constrain. You will get the following error as soon as you reach to the first method call. Solution Open you main seeder file… read more

  • Recently I reached to the point in my Laravel 5 application where I’ve started repeating some small parts of my code in many places. I knew that in the future it can easily get out of control when there will be a need to change something. Obviouslly solution like “search and replace” is something we… read more

  • It took me a while to realize what is going on with this strange issue. You did a migration that worked fine? Then you wanted to populate newly created table by seeding your database? You made a proper file, you called the file inside DatabaseSeeder.php using exactly the same class name as in the recent… read more

  • Creating multilingual project in Laravel isn’t as hard as it may look like. In this article I will show you how to apply basic localization feature. For purposes of this article we will implement two languages. English language will be set as the main one and as a fallback language as well. Second one doesn’t… read more

  • There is a big chance that you might have seen an exception in Laravel 5 that is thrown when Form and / or Html class cannot be found by the framework. It happens because fifth version of it doesn’t come with HtmlServiceProvider. That stops you from using some significant features like for example form helpers.… read more

  • Laravel 5 comes with some already built-in features like authentication and registration and that makes this framework great. However, sometimes you may want to change the default functionality or behavior of existing elements. As we all know, you shouldn’t touch any of the core scripts (such as files located in the vendor directory, since it can… read more

  • Adding Composer dependencies into Laravel 5 is very easy but you have to remember about few things. To add third party packages into your Laravel, locate file called composer.json (root of your project) and paste the name of the package in require / require-dev section. In my case I had to add “illuminate/html”: “~5.0” package… read more