Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
development:php:laravel [2020/02/27 14:50]
kalenpw
development:php:laravel [2021/06/29 15:15] (current)
kalenpw [Add column to existing table]
Line 18: Line 18:
 </code> </code>
  
-To allow CORS for all routes, add the HandleCors middleware in the $middleware property of app/Http/Kernel.php class:+To allow CORS for all routes, add the HandleCors middleware in the ''$middleware'' property of ''app/Http/Kernel.php'' class:
 <code php> <code php>
 protected $middleware = [ protected $middleware = [
Line 47: Line 47:
 ---- ----
 ===== Database ===== ===== Database =====
-==== Add column to existing table ====+** Add column to existing table ** \\
 <code bash> <code bash>
 php artisan make:migration add_paid_to_users php artisan make:migration add_paid_to_users
Line 85: Line 85:
 $projects = \App\Project::orderBy('order')->get(); $projects = \App\Project::orderBy('order')->get();
 </code> </code>
 +
 +----