Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Key Generation For new Laravel application #6

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 0 additions & 52 deletions .env.example

This file was deleted.

25 changes: 18 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down