PHP code example of ninhnk / first-package
1. Go to this page and download the library: Download ninhnk/first-package library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ninhnk / first-package example snippets
php artisan vendor:publish --provider="Ninhnk\FirstPackage\Providers\RouteServiceProvider"
php artisan migrate
php artisan db:seed --class="Ninhnk\FirstPackage\Database\Seeders\AccountSeeder"
trong file config/auth tìm đến providers và thay 'model' => Ninhnk\FirstPackage\Models\Account::class,
php artisan ser
http://localhost:8000/sign-in
user name: ninhnk or admin
pass: 123qweASD