Similar Posts
Laravel 5.4 with Foundation 6.3
I wanted to share how I got Foundation Site 6.3 to work with Laravel 5.4 and webpack. I tried this on a brand new Laravel project. First, edit the package.json file and replace the bootstrap-sass entry with “foundation-sites”: “^6.3.1” Then run npm install. This will download all the dependencies and store them in the node_modules…
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 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 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…
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….
Laravel Episode 9: Middleware Roles
Episode 9: Middleware Roles Create a migration file for staff role and default staff account. php artisan make:migration create_staff_role_and_default_new_user Code the new migration file. public function up() { // create new staff role DB::table(‘roles’)->insert( [ ‘id’ => 2, ‘role_name’ => ‘staff’ ] ); // create default user for staff DB::table(‘users’)->insert( [ ‘username’ => ‘staff’, ’email’…