Similar Posts
Laravel with InertiaJS
I’m not sure when this whole backend vs frontend battle started in my head. But I’m mainly a backend developer. Ever since I started development, I mainly focused on data structure and coding. I rarely paid attention to any of the frontend elements. My main focus were to ensure that my code worked as expected….
User Roles One to Many
There are many ways to handle user roles in an application. One way is to create a role(s) that have many user(s) or a one to many relationship.
Laravel Episode 11: Updating My Profile
Episode 11: Updating My Profile Changes in between episode 10 and 11 Cleaned up code in routes file. Go through code and replaced Role::userHasRole() with User::hasRoles(). Removed __construct() from ProductController. Update database diagram to match current database schema. Create route for /my-profile. Create new route group for auth middleware. Create methods in UserController. myProfile()…
Laravel Episode 7: CRUD Part 1
Episode 7: CRUD Part 1 Changes since the last episode. Switched out laravelcollective code to standard html code. Moved validation messages to part of the form. Updated elixir to version 5. Create a new migration for products table. id int(11) product_name varchar(255) sku varchar(30) price decimal(5,2) description text timestamps php artisan make:migration create_products_table Create…
Laravel Episode 4: Models, Migration, and Database
Episode 4: Models, Migration, and Database Look at the /config/database.php file Use sqlite for demo database touch storage/database.sqlite Look at migration files Explain naming convention php artisan migrate Explain migration, rollback, and refresh Explain up() and down() Explain what timestamps() is Create a default record for user Create a migration for roles table
Laravel Episode 10: More Middleware and Routes
Episode 10: More Middleware and Routes Laravel Debugbar by barryvdh Works with Laravel 4 and 5. Great tool for sql profiler among other things. Review the previous episode regarding multiple roles middleware. Middleware implementation is not the same as how I implemented filters from previous version of Laravel. Use Debugbar how the SQL looks…