- С админкой "AdminLTE" 2.3.7
- С редактором TinyMCE
- Возможность создавать и редактировать теги/категории статей
- Регистрация и управление пользователями
- Подключение кода JS/CSS на сайт через админку
- git clone THIS_REPO
- cp .env.example .env
- composer install
- php artisan key:generate
- create empty DB and config it into .env
- php artisan migrate
- php artisan storage:link
mkdir -p storage/framework/{sessions,views,cache}
sudo chmod -R 777 storage
- ln -s /var/www/THIS_SITE/storage/app/public/ /var/www/THIS_SITE/html/public/storage
chown www-data -R /app/storage/logs/
chown www-data -R /app/storage/clockwork/
chown www-data -R /app/storage/framework/
chown www-data -R /app/bootstrap/cache/
chown www-data -R /var/www/phpqa.ru/app/storage/app/public/
chown www-data -R /app/storage/app/public/
-
npm install
-
npx mix
-
fill all
MAIL_*
params in .env file for subscription functionality -
Optional: see how to create demo items in
Factories.md
file.
- git pull
- php artisan config:clear
The "Laravel Telescope" will be enabled when TELESCOPE_ENABLED
is true.
Access will be if APP_ENV
is local.
php artisan telescope:install
php artisan migrate
after updating:
php artisan telescope:publish
The Debugbar will be enabled when APP_DEBUG is true.
Чтобы создать фабрики, миграции, модели и ресурсный контроллер выполните:
php artisan make:model Post -a
Миграции заново:
php artisan migrate:refresh
A specific table fresh migration:
php artisan migrate:refresh --path=/database/migrations/fileName.php
Open post with comment text field, after it open browser console and write:
document.querySelectorAll('input[name="countMe"]')[0].value;
let honeypot = document.getElementById('honeypot');
honeypot.value;
php artisan make:request Post\AddPostRequest
php artisan optimize:clear
composer dump-autoload
composer cc
mysql -u root -p -h mysql_phpqa