Skip to content

Commit

Permalink
updated models
Browse files Browse the repository at this point in the history
  • Loading branch information
unbreakablery committed May 24, 2021
1 parent 72a45bc commit 8d6fad7
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 3 deletions.
10 changes: 10 additions & 0 deletions app/Models/Action.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Action extends Model
{
//
}
10 changes: 10 additions & 0 deletions app/Models/Setting.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Setting extends Model
{
//
}
10 changes: 10 additions & 0 deletions app/Models/Step.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Step extends Model
{
//
}
11 changes: 11 additions & 0 deletions app/Models/SuggestSetting.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class SuggestSetting extends Model
{
use HasFactory;
}
5 changes: 3 additions & 2 deletions app/Models/Tasks.php → app/Models/Task.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@

use Illuminate\Database\Eloquent\Model;

class Tasks extends Model
class Task extends Model
{
protected $table = 'tasks';

protected $fillable = [
'user',
'action',
'step',
'from_to_account',
'person_account',
'opportunity',
'note',
'priority',
'by_date',
'completed_at',
Expand Down
2 changes: 1 addition & 1 deletion app/Models/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',
'name', 'email', 'password', 'role'
];

/**
Expand Down

0 comments on commit 8d6fad7

Please sign in to comment.