npm install -g n
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function up() | |
{ | |
// Delete the view in case of "php artisan:fresh", to workaround bug | |
DB::statement('DROP VIEW IF EXISTS userItemlistsView'); | |
// Create views | |
DB::statement("CREATE VIEW userItemlistsView AS | |
SELECT | |
U.NAME AS USER_NAME, | |
I.NAME AS LIST_NAME | |
FROM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
php artisan route:clear && php artisan view:clear && php artisan config:clear && php artisan cache:clear |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Official Bulma colors and those which suite very nicely: | |
Box background for Chart.js canvas: #f6f8fa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Adjust timezone via app.php to read from .env file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Please note: | |
Flash messages are made with Bulma (https://bulma.io) | |
Write in Controller | |
------------------- | |
request()->session()->flash('success', 'This is a success.'); | |
OR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
NewerOlder