change pack to label

This commit is contained in:
Fayyazi
2019-10-28 14:16:18 +03:30
parent 7c94a30254
commit dbd0ddc1d4
16 changed files with 254 additions and 112 deletions
+30
View File
@@ -0,0 +1,30 @@
<?php
namespace App\Policies;
use App\User;
use App\Label;
use Doctrine\Tests\Common\Inflector\InflectorTest;
class LabelPolicy
{
public function delete(User $User, Label $Label)
{
// if($User->hasRole('Admin') && $Label->users->count() == 0)
return true;
}
public function update(User $User, Label $Label)
{
// if($User->hasRole('Admin'))
return true;
}
public function store(User $User)
{
// if($User->hasRole('Admin'))
return true;
}
}