Browse Source

Renomeia modelos

usuarios_separados
Guilherme Capanema 6 years ago
parent
commit
2f991f63d6
5 changed files with 60 additions and 6 deletions
  1. +3
    -3
      app/Associate.php
  2. +1
    -1
      app/AssociateCategory.php
  3. +1
    -1
      app/AssociateNature.php
  4. +1
    -1
      app/AssociateType.php
  5. +54
    -0
      app/Collaborator.php

app/User.php → app/Associate.php View File


app/UserCategory.php → app/AssociateCategory.php View File


app/UserNature.php → app/AssociateNature.php View File


app/UserType.php → app/AssociateType.php View File


+ 54
- 0
app/Collaborator.php View File

@ -0,0 +1,54 @@
<?php
namespace App;
use App\Events\UserCreating;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
class Collaborator extends Authenticatable
{
use Notifiable;
/**
* The attributes that aren't mass assignable.
*
* @var array
*/
protected $fillable = ['name', 'email', 'password'];
/**
* The attributes that should be hidden for arrays.
*
* @var array
*/
protected $hidden = [
'password', 'remember_token',
];
/**
* The event map for the model.
*
* @var array
*/
protected $dispatchesEvents = [
'creating' => UserCreating::class,
];
//
//
// =====================================================================
// RELATIONSHIPS
// =====================================================================
//
//
//
//
// =====================================================================
// OTHER METHODS
// =====================================================================
//
//
}