Skip to content

Commit 9153e96

Browse files
committed
Updated README
1 parent b55f3e6 commit 9153e96

File tree

1 file changed

+7
-85
lines changed

1 file changed

+7
-85
lines changed

README.md

Lines changed: 7 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -7,92 +7,14 @@ Make your database simple and easyer
77

88
[Documentation](https://codexshaper.github.io/docs/laravel-database-manager/)
99

10-
# Install package
10+
## Authors
1111

12-
```
13-
composer require codexshaper/laravel-database-manager
14-
```
12+
* **Md Abu Ahsan Basir** - [github](https://github.com/maab16)
1513

16-
# Setup database manager
14+
## Thanks for awesome design
15+
* **Mahabubul Alam** - [github](https://github.com/mahabubul1)
1716

18-
```
19-
php artisan dbm:install
20-
```
21-
# Setup Passport
17+
## License
2218

23-
Add `HasApiTokens` Trait in your `User` Model
24-
25-
```
26-
<?php
27-
28-
namespace App;
29-
30-
use Illuminate\Foundation\Auth\User as Authenticatable;
31-
use Illuminate\Notifications\Notifiable;
32-
use Laravel\Passport\HasApiTokens;
33-
34-
class User extends Authenticatable
35-
{
36-
use HasApiTokens, Notifiable;
37-
}
38-
```
39-
Next, you should call the `Passport::routes` method within the `boot` method of your `AuthServiceProvider`.
40-
```
41-
<?php
42-
43-
namespace App\Providers;
44-
45-
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
46-
use Illuminate\Support\Facades\Gate;
47-
use Laravel\Passport\Passport;
48-
49-
class AuthServiceProvider extends ServiceProvider
50-
{
51-
/**
52-
* The policy mappings for the application.
53-
*
54-
* @var array
55-
*/
56-
protected $policies = [
57-
'App\Model' => 'App\Policies\ModelPolicy',
58-
];
59-
60-
/**
61-
* Register any authentication / authorization services.
62-
*
63-
* @return void
64-
*/
65-
public function boot()
66-
{
67-
$this->registerPolicies();
68-
69-
Passport::routes();
70-
}
71-
}
72-
```
73-
Finally, in your `config/auth.php` configuration file, you should set the `driver` option of the `api` authentication guard to `passport`.
74-
```
75-
'guards' => [
76-
'web' => [
77-
'driver' => 'session',
78-
'provider' => 'users',
79-
],
80-
81-
'api' => [
82-
'driver' => 'passport',
83-
'provider' => 'users',
84-
],
85-
],
86-
```
87-
88-
# Create admin account to access all features
89-
90-
```
91-
php artisan dbm:admin 'user' 'action' 'options'
92-
```
93-
Example
94-
```
95-
php artisan dbm:admin [email protected] create --columns=email
96-
```
97-
98-
In this case ```email``` column must be exists in your users table and ```[email protected]``` must be a record
19+
- **[MIT license](http://opensource.org/licenses/mit-license.php)**
20+
- Copyright 2019 © <a href="https://github.com/Codexshaper/laravel-database-manager/blob/master/LICENSE" target="_blank">CodexShaper</a>.

0 commit comments

Comments
 (0)