Laravel hub is your home for laravel packages, template, tools and more.
git clone https://github.com/WyattCast44/laravel-hub.git
cd laravel-hub
Make sure you set your local credentials in your .env
file.
cp .env.example .env
php artisan key:generate
composer install
yarn install
- Create GitHub OAuth App
- URL:
- Authorization callback URL = http://laravel-hub.test/login/callback
- Add the client ID and secret to
.env
file
GITHUB_CLIENT_ID=your-id
GITHUB_CLIENT_SECRET=your-secret
php artisan migrate --seed
If using Laravel scout, make sure you create your indexes
php artisan scout:import App\\Package
if using the mysql
driver
php artisan scout:mysql-index
This project uses Laravel Scout for searching various models, for local development it can be useful to use the mysql
driver instead of the Algolia driver. To use this driver set the following env
values:
SCOUT_DRIVER=mysql
SYNC_WITH_SEARCH=true
SCOUT_QUEUE=false
ALGOLIA_APP_ID=
ALGOLIA_SECRET=
If you wish to use Algolia, use the following setup, with your algolia keys:
SCOUT_DRIVER=algolia
SYNC_WITH_SEARCH=true
SCOUT_QUEUE=true
ALGOLIA_APP_ID=your-app-id
ALGOLIA_SECRET=your-app-secret
You can run the application test suite after setup by running the following command:
php artisan test --parallel
$FORGE_PHP artisan migrate --force
$FORGE_PHP artisan scout:mysql-index