When you have a model with unique value column and tries seeder your table using a big amout, sometimes the QueryException is thrown, because Faker doesn't know what values was previously generated and the number of combinations is limited.
I made a filter for Laravel 5.0 , you can redirect non-www URLs to www URL and you don't need to write any difficult htaccess codes . Just put the filter in routes.php and use it for any Routes you want them to be with WWW .
This snipped code is made by www.larabook.ir
1. create two route files routes.web.php and routes.api.php.
2. edit the RouteServiceProvider.php file to look like the code below:
(Note: you can add as many routes as you want, just follow the same logic.)
Hi,
I have 3 tables USER, ALBUMS, PHOTOS USER has one to many relation with ALBUMS, ALBUMS has one to many relation with photos. My relation mapping as follows