diff --git a/.env.example b/.env.example deleted file mode 100644 index 3594d2d..0000000 --- a/.env.example +++ /dev/null @@ -1,52 +0,0 @@ -APP_NAME=Laravel -APP_ENV=local -APP_KEY= -APP_DEBUG=true -APP_URL=http://localhost - -LOG_CHANNEL=stack -LOG_DEPRECATIONS_CHANNEL=null -LOG_LEVEL=debug - -DB_CONNECTION=mysql -DB_HOST=127.0.0.1 -DB_PORT=3306 -DB_DATABASE=laragigs -DB_USERNAME=root -DB_PASSWORD= - -BROADCAST_DRIVER=log -CACHE_DRIVER=file -FILESYSTEM_DISK=local -QUEUE_CONNECTION=sync -SESSION_DRIVER=file -SESSION_LIFETIME=120 - -MEMCACHED_HOST=127.0.0.1 - -REDIS_HOST=127.0.0.1 -REDIS_PASSWORD=null -REDIS_PORT=6379 - -MAIL_MAILER=smtp -MAIL_HOST=mailhog -MAIL_PORT=1025 -MAIL_USERNAME=null -MAIL_PASSWORD=null -MAIL_ENCRYPTION=null -MAIL_FROM_ADDRESS="hello@example.com" -MAIL_FROM_NAME="${APP_NAME}" - -AWS_ACCESS_KEY_ID= -AWS_SECRET_ACCESS_KEY= -AWS_DEFAULT_REGION=us-east-1 -AWS_BUCKET= -AWS_USE_PATH_STYLE_ENDPOINT=false - -PUSHER_APP_ID= -PUSHER_APP_KEY= -PUSHER_APP_SECRET= -PUSHER_APP_CLUSTER=mt1 - -MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" -MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" diff --git a/README.md b/README.md index 1efd9a5..b5470f3 100644 --- a/README.md +++ b/README.md @@ -7,30 +7,41 @@ An app for listing Laravel gigs/jobs. This project is from my YouTube "[Laravel ## Usage ### Database Setup + This app uses MySQL. To use something different, open up config/Database.php and change the default driver. To use MySQL, make sure you install it, setup a database and then add your db credentials(database, username and password) to the .env.example file and rename it to .env -### Migrations -To create all the nessesary tables and columns, run the following +### Generate Key + +To run laravel project generating keys are required make sure that you have .env +, run the following command +it will set APP_KEY=base64:xxxxxxxxxxxxxxxxxxxx to .env + ``` -php artisan migrate +php artisan key:generate ``` -### Seeding The Databaase -To add the dummy listings with a single user, run the following +### Migrations & Seeding The Database + +To create all the nessesary tables, columns and add the dummy listings with a single user, run the following + ``` -php artisan db:seed +php artisan migrate --seed ``` ### File Uploading + When uploading listing files, they go to "storage/app/public". Create a symlink with the following command to make them publicly accessible. + ``` php artisan storage:link ``` ### Running Then App -Upload the files to your document root, Valet folder or run + +Upload the files to your document root, Valet folder or run + ``` php artisan serve ```