From 281a248d2c139aeb0e13f054da43b3812143df9d Mon Sep 17 00:00:00 2001 From: Guillermo Cava Date: Fri, 10 Nov 2023 20:50:36 -0500 Subject: [PATCH] fix composer install --- app/Console/Commands/GenerateSeedsFromDatabase.php | 8 ++++---- readme.md | 8 +++++++- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/app/Console/Commands/GenerateSeedsFromDatabase.php b/app/Console/Commands/GenerateSeedsFromDatabase.php index ff5824a7..688b6683 100644 --- a/app/Console/Commands/GenerateSeedsFromDatabase.php +++ b/app/Console/Commands/GenerateSeedsFromDatabase.php @@ -24,15 +24,15 @@ public function __construct() { parent::__construct(); - if (app()->environment() === 'local') { - dispatch(new CreateTunnel); - } - $this->dirPath = config('seeder.directory', 'database/json'); } public function handle(): int { + if (app()->environment() === 'local') { + dispatch(new CreateTunnel); + } + $methods = collect([ 'Modules' => 'syncModules', 'Resources' => 'syncResources', diff --git a/readme.md b/readme.md index fffe353b..344d4853 100644 --- a/readme.md +++ b/readme.md @@ -15,6 +15,12 @@ Onramp aims to be a collection of resources presented in a way that makes it pos > [Vite](https://vitejs.dev/) requires node `^14.18.0 || >=16.0.0` to run +- Create a [GitHub OAuth Application](https://github.com/settings/developers). If you use Valet to serve your application locally, you can use the following settings: + - Application Name: `Local Onramp` + - Homepage URL: `http://onramp.test` + - Application Description: `Local Version of Onramp` + - Authorization Callback URL: `http://onramp.test/en/login/github/callback` + ## How can I help? Check out the [Contribution Guide](https://github.com/tighten/onramp/blob/main/contributing.md) to learn more about how to contribute. @@ -40,7 +46,7 @@ php artisan generate:seeds-from-db --all Then, to seed your local database run: ```bash -php art migrate:fresh --seed +php artisan migrate:fresh --seed ``` > Warning: Any changes made to your local database will be overridden when seeding your database from the production seeder files.