Similar Posts
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 Dev Environment in Ubuntu 18.04
Here is how to set up a Laravel dev environment on Ubuntu 18.04 LTS Bionic Beaver.
Laravel Episode 8: CRUD Part 2
Episode 8: CRUD Part 2 Go over form method spoofing. https://laravel.com/docs/5.1/routing#form-method-spoofing Change the create form to use form method spoofing. Delete unnecessary buttons “more info” and “edit”. Create the edit form page. Code the update process. Add the delete functionality and note that it is a POST method. Show how to create a custom_js…
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 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 Many to Many
Another way to design user roles in your application is to create a many to many relationship. This means many users can have many roles.