add pack and update items & packegs & cycles

This commit is contained in:
Fayyazi
2019-09-07 13:49:04 +04:30
parent 3522700605
commit 976e4c075b
39 changed files with 628 additions and 111 deletions
+30
View File
@@ -0,0 +1,30 @@
<?php
namespace App\Policies;
use App\User;
use App\Pack;
use Doctrine\Tests\Common\Inflector\InflectorTest;
class PackPolicy
{
public function delete(User $User, Pack $Pack)
{
// if($User->hasRole('Admin') && $Pack->users->count() == 0)
return true;
}
public function update(User $User, Pack $Pack)
{
// if($User->hasRole('Admin'))
return true;
}
public function store(User $User)
{
// if($User->hasRole('Admin'))
return true;
}
}