(Create local database)
Update Homestead YAML File (sites and databases):
subl ~/Homestead/Homestead.yaml
# shortcut: subl hsyaml
Update Hosts File:
subl /etc/hosts
# shortcut: subl hhosts
Provision VM:
cd ~/Homestead
# shortcut: cdhome
vagrant provision
# alias: vp
cd ~/Code
composer create-project --prefer-dist laravel/laravel myproject
# shortcut: ccp
cd myproject
git init
git add .
git commit -m 'Installed Laravel'
# alias: gnew 'Installed Laravel'
php artisan make:auth
php artisan queue:table #if using database driver
php artisan queue:failed-table
# Composer will complain if this file is not present!
touch app/helpers.php
composer require \
barryvdh/laravel-debugbar \
bugsnag/bugsnag-laravel \
guzzlehttp/guzzle \
jrm2k6/cloudder \
lab404/laravel-impersonate \
laracasts/flash \
laravel/telescope \
laravelcollective/html \
nissicreative/laravel-recaptcha dev-master \
nissicreative/phptools dev-master \
owen-it/laravel-auditing \
predis/predis \
rutorika/sortable \
spatie/laravel-backup
# Dev Packages
composer require --dev nissicreative/laravel-generators dev-master \
mpociot/laravel-test-factory-helper
# Laravel Cashier
composer require \
laravel/cashier \
dompdf/dompdf
# Admin Extras
composer require \
league/csv \
unisharp/laravel-filemanager
# Install/publish config files
php artisan telescope:install
php artisan vendor:publish --provider="OwenIt\Auditing\AuditingServiceProvider" --tag="config"
php artisan vendor:publish --provider "OwenIt\Auditing\AuditingServiceProvider" --tag="migrations"
php artisan vendor:publish --provider="Spatie\Backup\BackupServiceProvider"
subl .
.env
DB_DATABASE=<database_name>
...
MAIL_USERNAME=<mailtrapuser>
MAIL_PASSWORD=<mailtrappass>
config/app.php
'providers' = [
// ...
Bugsnag\BugsnagLaravel\BugsnagServiceProvider::class,
Rutorika\Sortable\SortableServiceProvider::class,
]
'aliases' = [
// ...
'Bugsnag' => Bugsnag\BugsnagLaravel\Facades\Bugsnag::class,
]
config/mail.php
//...
'from' => [
'address' => env('MAIL_FROM_ADDRESS', '[email protected]'),
'name' => env('MAIL_FROM_NAME', 'Project Name'),
],
//...
config/logging.php
'channels' => [
'stack' => [
'driver' => 'stack',
// Add bugsnag to the stack:
'channels' => ['daily', 'bugsnag'],
],
// ...
// Create a bugsnag logging channel:
'bugsnag' => [
'driver' => 'bugsnag',
],
],
composer.json
{
// ...
"require": {
// ...
},
"autoload": {
"psr-4": {
"App\\": "app/"
},
"classmap": [
"database/seeds",
"database/factories"
],
"files": [
"app/helpers.php"
]
},
// ...
}
USING VM, publish files from laravel-boilerplate directory:
# Must be done from virtual machine. BSD doesn't support necessary cp flags.
vm
cd ~/Code && cp -RT laravel-boilerplate/ {project_directory}/
# alias: ccplb (from project root)
git add .
git commit -m 'Installed Boilerplate'
# alias: gq 'Installed Boilerplate'
Add line to array in app/Http/Kernel
protected $routeMiddleware = [
// ...
'admin' => \App\Http\Middleware\Admin::class,
];
(Edit webpack.mix.js as necessary)
npm install
npm i -D \
vue \
bootstrap \
bootstrap4-utilities \
jquery \
popper.js \
@fortawesome/fontawesome-pro \
@fancyapps/fancybox \
form-backend-validation \
jquery-ui \
dropzone \
select2 \
npm run develop # nrd
git add .
git commit -m 'Installed Dependencies'
# alias: gq 'Installed Dependencies'
git remote add origin [email protected]:mikefolsom/MYREPO.git
git push -u origin master
gittower .
# alias: gt .