npm install -g n
sudo n latest
npm cache clean -f
sudo npm install -g npm
tbd
npm install -g npm
php artisan --version
composer global require laravel/installer
composer create-project laravel/laravel .
laravel new appname --jet
composer require beyondcode/laravel-self-diagnosis
php artisan self-diagnosis
php artisan key:generate
Either install version 4.7
npm install font-awesome --save
OR
Install version 5.x
npm install @fortawesome/fontawesome-free --save
npm install tether --save
npm install popper.js --save
npm install bootstrap --save
- Open "/webpack.mix.js"
Add
mix
.sass('resources/sass/app.scss','public/css/app.css').version()
.js([
'resources/js/app.js',
'./node_modules/jquery/dist/jquery.js',
'./node_modules/bootstrap/dist/js/bootstrap.js',
],'public/js/app.js').version();
- Open "/resources/sass/app.scss"
Add
// Fonts
@import url(https://fonts.googleapis.com/css?family=Raleway:300,400,600);
// Bulma dependencies
@import "~bulma";
@import "~bulma-badge";
@import '~bulma-calendar';
// Font-Awesome 4.70
//$fa-font-path: "~font-awesome/fonts";
//@import "~font-awesome";
// Font-Awesome 5.x basic
@import "~@fortawesome/fontawesome-free";
// Font-Awesome 5.x fonts
$fa-font-path: "~@fortawesome/fontawesome-free/webfonts";
@import "~@fortawesome/fontawesome-free/scss/fontawesome.scss";
@import "~@fortawesome/fontawesome-free/scss/solid.scss";
@import "~@fortawesome/fontawesome-free/scss/regular.scss";
@import "~@fortawesome/fontawesome-free/scss/brands.scss";
npm run dev
composer global require friendsofphp/php-cs-fixer
composer global require phpmd/phpmd
composer require rap2hpoutre/laravel-log-viewer
composer require laravel-frontend-presets/bulma
php artisan preset bulma-auth && npm install && npm run dev
composer require laravel/passport && php artisan migrate && php artisan passport:install
Modify User model:
use Laravel\Passport\HasApiTokens; class User extends Authenticatable { use HasApiTokens, Notifiable; }
composer require laravel/ui --dev && php artisan ui vue && npm install && npm run dev && php artisan ui vue --auth && npm install && npm run dev && php artisan migrate
composer require laravel-frontend-presets/bulma && php artisan preset bulma-auth && npm install && npm run dev
Auth::routes();
Route::get('logs', '\Rap2hpoutre\LaravelLogViewer\LogViewerController@index');
Route::resource('photos', 'PhotoController');
php artisan route:list --name items
php artisan route:clear
php artisan config:clear
php artisan view:clear
npm run prod
php artisan route:cache
php artisan passport:keys
You are running Vue in development mode. Make sure to turn on production mode when deploying for production. See more tips at https://vuejs.org/guide/deployment.html
#phpcs
{{--// phpcs:ignoreFile--}}
php artisan serve --host=<your_machine_ip> --port=8000