Справка Laravel


Laravel Auth::routes() Email verification Reset password

Create API Rest with Laravel 5.6 Passport Authentication

  passport-authentication

Laravel Package Development Basics

 

 

https://laravel.com/docs/5.6/controllers

https://laravel.ru/docs/v5/queues

http://laranotes.ru/notes

https://itsolutionstuff.com/post/laravel-has-many-through-eloquent-relationship-tutorialexample.html

 

 https://medium.com/modulr/create-api-authentication-with-passport-of-laravel-5-6-1dc2d400a7f

 

Что хорошего в ларавеле 

  • Blade Templating
  • Routing
  • Eloquent ORM
  • Middleware
  • Artisan(Command-Line Interface)
  • Security
  • In built Packages
  • Caching
  • Service Providers
  • Facades
  • Service Container

 

 Отключить ошбку mysql 

app/Providers/AppServiceProvider.php:16
# add this to fix в  метод public function boot()  :  
#Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes
        \Illuminate\Support\Facades\Schema::defaultStringLength(191);

 

 https://dev.to/povilaskorop/laravel-approve-new-registered-users-from-administrator-3nbh

 Про Eloqeuint

 all and get which retrieve multiple results, an instance of Illuminate\Database\Eloquent\Collection

 

php artisan make:model Models/Stream -m
php artisan make:request StreamRequest
php artisan make:Controller --resource  Web/StreamController
php artisan make:Controller --resource  Api/StreamController --api
php artisan make:policy --model=Stream  StreamPolice
php artisan make:seeder DB/StreamSeeder
php artisan make:factory --model=Stream StreamFactory
# не обязательно 
php artisan make:migration  --create=Streams create_Streams_table

 

npm i 
npm run encore -- production
composer install
php -r 'file_put_contents("database/database.sqlite", "");'
php -r 'file_exists("public/env.js") || copy("public/env.dist.js", "public/env.js");'
php -r 'file_exists(".env") || copy(".env.example", ".env");'
php artisan key:generate --ansi

php artisan migrate --seed
php artisan serve