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 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…
Configuring Windows Server 2012 to Run a Laravel Application
My latest project required me to use the Laravel framework and use a MSSQL Server backend. To do this, I will be using Windows Server 2012, IIS, and MSSQL Server 2012. Installing IIS First thing is make sure every thing is up to date. If it’s a brand new server, you will need to install…
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 10: More Middleware and Routes
Episode 10: More Middleware and Routes Laravel Debugbar by barryvdh Works with Laravel 4 and 5. Great tool for sql profiler among other things. Review the previous episode regarding multiple roles middleware. Middleware implementation is not the same as how I implemented filters from previous version of Laravel. Use Debugbar how the SQL looks…
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()…