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.

Advertisements

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