Skip to content

Commit

Permalink
Removed Registration role_id field
Browse files Browse the repository at this point in the history
  • Loading branch information
subhadipghorui committed Dec 29, 2020
1 parent da1becb commit 2da930a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion app/Http/Controllers/Auth/RegisterController.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ protected function create(array $data)
{
return User::create([
'userid' => $data['userid'],
'role_id' => 2,
'name' => $data['name'],
'email' => $data['email'],
'password' => Hash::make($data['password']),
Expand Down
2 changes: 1 addition & 1 deletion app/Providers/RouteServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class RouteServiceProvider extends ServiceProvider
*
* @var string
*/
public const HOME = '/home';
public const HOME = '/';

/**
* Define your route model bindings, pattern filters, etc.
Expand Down
2 changes: 1 addition & 1 deletion app/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class User extends Authenticatable
* @var array
*/
protected $fillable = [
'name', 'email', 'password', 'role_id', 'userid'
'name', 'email', 'password', 'userid'
];

/**
Expand Down

0 comments on commit 2da930a

Please sign in to comment.