Browse Source

Update readme for usage on fresh install Laravel

tags/1.2.9
Nafies Luthfi 7 years ago
parent
commit
85f22dc9c3
  1. 26
      readme.md

26
readme.md

@ -114,6 +114,32 @@ Then visit our application url: `http://localhost:8000/vehicles`.
<br>
#### Usage on Fresh Install Laravel
If you are using this package from from the fresh laravel project.
```bash
# This is example commands for Ubuntu users.
$ composer create-project laravel/laravel --prefer-dist project-directory
$ cd project-directory
$ vim .env # Edit your .env file to update database configuration
# Install the package
$ composer require luthfi/simple-crud-generator --dev
# Create auth scaffolds to get layout.app view, register and login feature
$ php artisan make:auth
$ php artisan make:crud Vehicle # Model name in singular
# I really suggest "git commit" your project right before run make:crud command
$ php artisan migrate
$ php artisan serve
# Visit your route http://127.0.0.1:8000
# Register as new user
# Visit your route http://127.0.0.1:8000/vehicles
```
#### Available Commands
```bash

Loading…
Cancel
Save