LEKAUTO ADMIN API SETUP

***SETPS TO SETUP PROJECT***

Clone repository

```
git clone https://ayan0547@dev.azure.com/ayan0547/Lek%20Auto/_git/lekauto-admin-api-laravel -b dev
```

copy .env file

```
cd lekauto-admin-api-laravel
cp .env.example .env (update your database configuration in .env file)
```

change permissions

```
cd lekauto-admin-api-laravel

chmod -R 777 storage
chmod -R 777 storage/logs
chmod -R 777 storage/framework
chmod -R 777 bootstrap/cache
```

create client secret keys

```
cd lekauto-admin-api-laravel

php artisan passport:install
```

Project setup is ready.

To Access API base url

```
http://localhost/api
```

***Commands to create controller and models***

To create Controller
```
cd lekauto-admin-api-laravel
php artisan make:controller Api/{ControllerName}
```

To create Model
```
cd lekauto-admin-api-laravel

php artisan make:model {ModelName}
```

***Commands to clear route cache and application config caches issues***
```
cd lekauto-admin-api-laravel

php artisan config:clear

php artisan cache:clear

php artisan config:cache

```