Welcome
Welcome to my blog. Changes are coming so please be patient
-
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’…
-
Vanwalk 15-in-1 GoPro Accessory Kit
I recently got a good deal on a GoPro Hero+ so I decided to pick one up. It’s my first GoPro so I don’t have much plans for it yet. I wanted to use it as a HD webcam but to my surprise, you can’t. At least not without a lot of setting up and…
-
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…