Similar Posts
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 Homestead on Windows Issues
I really want to use Windows and Laravel Homestead as a dev environment so that I don’t have to keep pulling out my Macbook Pro when I’m at home. I have a 2015 iMac at home but I do want to utilize the better hardware on my PC. No matter how many times I try,…
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 6: Password Reset and Email
Episode 6: Password Reset and Email Move Login/Logout link to the navbar Add password help link to login page Configure .env to work with mailtrap.io Add value to from so that there is a sent from value. Good idea to use env(‘FROM_EMAIL’) Modify route file with the following // Password reset link request routes…
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’…
Laravel Dev Environment in Ubuntu 18.04
Here is how to set up a Laravel dev environment on Ubuntu 18.04 LTS Bionic Beaver.