création et remplissage des tables de la base de donnée

This commit is contained in:
Luka COUTANT
2025-06-10 14:23:54 +02:00
parent e9e9bc2ae6
commit 427c4406c8
16 changed files with 550 additions and 0 deletions

View File

@@ -0,0 +1,66 @@
<?php
namespace App\Policies;
use App\Models\Level;
use App\Models\User;
use Illuminate\Auth\Access\Response;
class LevelPolicy
{
/**
* Determine whether the user can view any models.
*/
public function viewAny(User $user): bool
{
return false;
}
/**
* Determine whether the user can view the model.
*/
public function view(User $user, Level $level): bool
{
return false;
}
/**
* Determine whether the user can create models.
*/
public function create(User $user): bool
{
return false;
}
/**
* Determine whether the user can update the model.
*/
public function update(User $user, Level $level): bool
{
return false;
}
/**
* Determine whether the user can delete the model.
*/
public function delete(User $user, Level $level): bool
{
return false;
}
/**
* Determine whether the user can restore the model.
*/
public function restore(User $user, Level $level): bool
{
return false;
}
/**
* Determine whether the user can permanently delete the model.
*/
public function forceDelete(User $user, Level $level): bool
{
return false;
}
}

View File

@@ -0,0 +1,66 @@
<?php
namespace App\Policies;
use App\Models\Task;
use App\Models\User;
use Illuminate\Auth\Access\Response;
class TaskPolicy
{
/**
* Determine whether the user can view any models.
*/
public function viewAny(User $user): bool
{
return false;
}
/**
* Determine whether the user can view the model.
*/
public function view(User $user, Task $task): bool
{
return false;
}
/**
* Determine whether the user can create models.
*/
public function create(User $user): bool
{
return false;
}
/**
* Determine whether the user can update the model.
*/
public function update(User $user, Task $task): bool
{
return false;
}
/**
* Determine whether the user can delete the model.
*/
public function delete(User $user, Task $task): bool
{
return false;
}
/**
* Determine whether the user can restore the model.
*/
public function restore(User $user, Task $task): bool
{
return false;
}
/**
* Determine whether the user can permanently delete the model.
*/
public function forceDelete(User $user, Task $task): bool
{
return false;
}
}