Synology DS1815+

For many years I’ve been toying with different platforms to solve my local storage needs. I’ve used Windows Home Server and Freenas. Both have great features and drawbacks. I wanted to focus on the following features that I feel neither Windows or Freenas do a good job on. Support for users on different operating systems and…

Using Windows for Development

It’s been a few months since my 2011 Macbook Pro died. I’ve tried to find a replacement since. With rumors of a new Macbook Pro announcing soon, I haven’t found any justification to replacing it with another. I did however, purchased a 2015 12” Macbook. I bought for my son and I was planning to use it as a secondary development machine. I’m not expecting it to be a powerhouse laptop which is why it won’t be a primary device. I will share my thoughts on that once I play with it more.

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 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 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 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…