Skip to content
This repository has been archived by the owner on Mar 27, 2022. It is now read-only.

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
adifaidz committed Mar 2, 2017
1 parent e5fdfbd commit 7042284
Showing 1 changed file with 6 additions and 17 deletions.
23 changes: 6 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,21 +49,24 @@ Laravel wrapper for commonly used package and crud generators for basic crud fun
- Install using **composer**

```
composer require adifaidz/base
```

- Register the service provider to your **providers** array in **config/app.php**

```
AdiFaidz\Base\Providers\BaseServiceProvider::class,
```

- Add this to the **boot** method in **app\Providers\AppServiceProvider.php** to register all package routes
- Run the **install** command using **artisan**, this will register guards, providers, password broker, route middlewares and middleware groups. It will also publish vue components, assets and bundling scripts and create route files.

```
php artisan base:install
```

- Add this to the **boot** method in **app\Providers\AppServiceProvider.php** to register all package routes

```
use AdiFaidz\Base\Base;
...
Expand All @@ -74,7 +77,6 @@ Laravel wrapper for commonly used package and crud generators for basic crud fun
- Change the auth users provider model in config/auth.php to

```
'users' => [
'driver' => 'eloquent',
'model' => AdiFaidz\Base\BaseUser::class,
Expand All @@ -84,24 +86,15 @@ Laravel wrapper for commonly used package and crud generators for basic crud fun
- Then, replace the **current** ExceptionHandler in **bootstrap/app.php** with Base ExceptionHandler class.

```
$app->singleton(
Illuminate\Contracts\Debug\ExceptionHandler::class,
AdiFaidz\Base\Exceptions\Handler::class
);
```

- Run the **install** command using **artisan**, this will register guards, providers, password broker, route middlewares and middleware groups. It will also publish vue components, assets and bundling scripts and create route files.

```
php artisan base:install
```

- After that, add this to the **map** method in **app\Providers\RouteServiceProvider.php** for generated package routes

```
use AdiFaidz\Base\Base;
...
Expand All @@ -112,21 +105,18 @@ Laravel wrapper for commonly used package and crud generators for basic crud fun
- Then, **configure your database connection** and run **migrate**. Upon completion, tables for **users, roles, permissions** will be created

```
php artisan migrate
```

- **Seed** the tables

```
php artisan db:seed --class="AdiFaidz\Base\Seeders\StartupSeeder"
```

- And finally, **run**

```
npm install && npm run watch
or
Expand All @@ -137,7 +127,6 @@ Laravel wrapper for commonly used package and crud generators for basic crud fun
- **Start** up your **server** and go to

```
http://localhost/login
```

Expand Down

0 comments on commit 7042284

Please sign in to comment.