Similar Posts
Laravel Development on Windows 10 Using Linux Subsystem
This is a guide on how to configure Windows 10 using the Fall Creators Update released in October 2017. I will be using Ubuntu for the Linux Subsystem. Ubuntu Turn on Windows Subsystem for Linux in the Windows Feature Restart Windows so it fully installs it Then go to the Windows Store app and download…
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.
Laravel Episode 5: MySQL and Auth Design
Episode 5: MySQL and Auth Design Show how to configure MySQL Create a database Create a user specific to the database Design the Users and Roles table Move roles migration file so it is created before users – rename it Edit user migration file so it uses role_id as foreign key Create log in…
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…
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.