/**
- @param string $argument1 This is the description. */
/**
@include('layout.header') | |
@include('layout.navbar') | |
@yield('content') | |
@include('layout.footer') |
<!DOCTYPE html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="../../resources/css/bulma.css"> | |
<link rel="stylesheet" href="../../resources/css/custom.css"> | |
<script src="https://use.fontawesome.com/releases/v5.3.1/js/all.js"></script> | |
<script> |
Model ------- Singular -- (e.g. app/Car.php) | |
Controller -- Singular -- (e.g. app/Http/Controllers/CarController.php) | |
Table ------- Plural ---- (e.g. "cars") | |
Factory ----- Singular -- (e.g. database/factories/CarFactory.php) | |
Seed -------- Plural ---- (e.g. database/seeds/CarsTableSeeder.php) | |
PivotTable -- Singular -- (e.g. car_dealer, for a connection between cars and dealers tables) |
// Named route for "About us" page which is placed in "/resources/views/other" folder | |
Route::get('/about', ['as' => 'about', function () { | |
return view('other.about'); | |
}]); | |
// Resourceful route | |
Route::resource('entries', 'EntryController'); |
Please note: | |
Flash messages are made with Bulma (https://bulma.io) | |
Write in Controller | |
------------------- | |
request()->session()->flash('success', 'This is a success.'); | |
OR |
Adjust timezone via app.php to read from .env file |
Official Bulma colors and those which suite very nicely: | |
Box background for Chart.js canvas: #f6f8fa |
php artisan route:clear && php artisan view:clear && php artisan config:clear && php artisan cache:clear |