Skip to content

Commit 59a3c13

Browse files
authored
update readme.md file
1 parent 05255e3 commit 59a3c13

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

readme.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
composer install
1515
```
1616
- Rename `.env.example` file to `.env`
17+
```
18+
cp .env.example .env
19+
```
1720
- Run this command to generate key
1821
```
1922
php artisan key:generate
@@ -31,8 +34,14 @@ php artisan tinker
3134
```
3235
factory(App\Book::class, 20)->create();
3336
```
34-
- I used [barryvdh/laravel-cors](https://github.com/barryvdh/laravel-cors) to enable `cors`. please go to this link and follow documentation to enable `cors`.
35-
- I used [laravel/passport](https://github.com/laravel/passport) to generate valid `token`.
37+
- I used [laravel/passport](https://github.com/laravel/passport) to generate valid `token`. Please run these command to configure passport.
38+
```
39+
php artisan passport:install
40+
```
41+
```
42+
php artisan passport:keys
43+
```
44+
3645
- Run this command to live your RESTful api
3746
```
3847
php artisan serve

0 commit comments

Comments
 (0)