> For the complete documentation index, see [llms.txt](https://iron-network.gitbook.io/vuely/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://iron-network.gitbook.io/vuely/vuely-laravel-with-api-authentication/run-vuely-laravel-passport.md).

# Run Vuely-Laravel-Passport

Database migration, if you use the vuely-laravel-passport-authentication project

### Step 1: Run the project <a href="#step-1-run-the-project" id="step-1-run-the-project"></a>

Firstly, you need to run the project, so follow the steps under the Getting Started of vuely-laravel

### Step 2: Database setup <a href="#step-2-database-setup" id="step-2-database-setup"></a>

Now go to your `.env` file and change the database credentials

```
DB_DATABASE=Your Database Name
DB_USERNAME=Username
DB_PASSWORD=Password
```

### Step 3: Migration <a href="#step-3-migration" id="step-3-migration"></a>

Now run the `php artisan migrate` command and this will generate the required tables of laravel and passport in your database.

### Step 4: passport:install <a href="#step-4-passport-install" id="step-4-passport-install"></a>

Next, you should run the `passport:install` command. This command will create the encryption keys needed to generate secure access tokens. In addition, the command will create "personal access" and "password grant" clients which will be used to generate access tokens.

```
php artisan passport:install
```
