Laravel Forum
Install Laravel Project
Run the command to induct fresh Laravel project.
composer create-project laravel/laravel laravel-forum --prefer-dist
Create fresh database in your mysql and set .env file
APP_NAME=Laravel
APP_ENV=local
APP_KEY=base64:Bu1fpi3yl0zKHpDgEUjFlikEOtvWECrme946mIJ42yM=
APP_DEBUG=true
APP_URL=http://localhostLOG_CHANNEL=stack
LOG_LEVEL=debugDB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel-forum
DB_USERNAME=root
DB_PASSWORD=passwordBROADCAST_DRIVER=log
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120MEMCACHED_HOST=127.0.0.1REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379MAIL_MAILER=smtp
MAIL_HOST=mailhog
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS=null
MAIL_FROM_NAME="${APP_NAME}"AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
Once you have created a new Laravel application, you may install Laravel Breeze using Composer:
composer require laravel/breeze --dev
After Composer has installed the Laravel Breeze package, you may run :
php artisan breeze:install
npm install
npm run dev
Install laravel-forum (teamteatime.net) in your Laravel project, just run the composer require command from your terminal:
composer require riari/laravel-forum:~5.0
Publish all the configuration files config/app.php
:
TeamTeaTime\Forum\ForumServiceProvider::class,
Run the vendor:publish command to publish the package config, translations and migrations to your app’s directories:
php artisan vendor:publish
Run your migrations:
php artisan migrate
output: