- Create droplet with Ubuntu 18.10
ssh root@[DROPLET IP ADDRESS]
- Get password from your email
- Change password on first login
adduser laravel
- Enter password and other information
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
https://itsolutionstuff.com/post/laravel-56-user-roles-and-permissions-acl-using-spatie-tutorialexample.html | |
https://itsolutionstuff.com/post/html-form-not-found-in-laravel-5example.html | |
https://laravel.com/docs/5.6/authentication | |
https://www.laraning.com/videos/episode-5-introduction-to-controllers | |
https://github.com/spatie/laravel-activitylog |
-
Install pakej spatie/laravel-permissions.
composer require spatie/laravel-permission
-
Publish migration file.
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider" --tag="migrations"
Dumping ground for Links
- https://gist.github.com/cjthomp/1455c39d4a14292676ea
- https://www.agvision.ro/building-api-starter-pack-laravel/
- https://deliciousbrains.com/react-laravel-lumen-company-status-board/
- http://mguimaraes.co/creating-a-fully-testable-books-review-app-from-the-ground-with-laravel-part-1/
- http://www.programmerfort.com/php-code-optimization-tips-and-tricks/
- http://blog.pisyek.com/create-room-booking-system-laravel-fullcalendar/
- Laravel: http://laravel.com/
- Laravel Zero: http://laravel-zero.com/
- Laravel Nova Gist: https://gist.github.com/hofmannsven/9964613096d6b371ff933fc3202a44ef
- October CMS Gist: https://gist.github.com/hofmannsven/e71b90092fde4dc5cff9
- Custom Laravel: https://customlaravel.com/
- Laravel cheatsheet: https://github.com/JesseObrien/laravel-cheatsheet
- arrays: https://gist.github.com/ourmaninamsterdam/1be9a5590c9cf4a0ab42
- questions: https://gist.github.com/ourmaninamsterdam/800ea80d463a72711adf#html
- random str: https://gist.github.com/ourmaninamsterdam/122d97d549e609e458fa
- async wait https://ponyfoo.com/articles/understanding-javascript-async-await
- es6 https://ponyfoo.com/articles/es6
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 | |
// 5.5 ,5.6 | |
namespace App\Exceptions; | |
use Exception; | |
use Illuminate\Auth\AuthenticationException; | |
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; | |
class Handler extends ExceptionHandler | |
{ |
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
Created: 12-16-2018 | |
Laravel: 5.7.* | |
Vue: 2.5.17 | |
// user > Code dir. (specific version) (--prefer-dist: https://getcomposer.org/doc/03-cli.md#install-i) | |
$ laravel new project-name (or) composer create-project laravel/laravel project-name ("5.0.*" --prefer-dist) | |
// check for any composer package updates | |
$ composer update |
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 | |
namespace App\Http\Controllers\Auth; | |
use Illuminate\Http\Request; | |
use App\Http\Controllers\Controller; | |
use Auth; | |
class AdminLoginController extends Controller | |
{ |
NewerOlder