Skip to content
This repository has been archived by the owner on Feb 7, 2022. It is now read-only.
/ laravel-hub Public archive

Laravel hub is your home for laravel packages, template, tools and more.

License

Notifications You must be signed in to change notification settings

WyattCast44/laravel-hub

Repository files navigation

Laravel Hub

Laravel hub is your home for laravel packages, template, tools and more.

Installing Locally

Clone the repo

git clone https://github.com/WyattCast44/laravel-hub.git

Move into project

cd laravel-hub

Copy the env file

Make sure you set your local credentials in your .env file.

cp .env.example .env

Generate APP_KEY

php artisan key:generate

Install Composer dependencies

composer install

Install NPM dependencies (Optional)

yarn install

Create OAuth App

GITHUB_CLIENT_ID=your-id
GITHUB_CLIENT_SECRET=your-secret

Migrate Database

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

Laravel Scout

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

Testing

You can run the application test suite after setup by running the following command:

php artisan test --parallel

Deploy Script

$FORGE_PHP artisan migrate --force
$FORGE_PHP artisan scout:mysql-index

About

Laravel hub is your home for laravel packages, template, tools and more.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published