Roman_applicant-site/app/Policies/OnlineDocumentsPolicy.php

67 lines
1.3 KiB
PHP
Raw Normal View History

2024-01-19 10:48:00 +03:00
<?php
namespace App\Policies;
2024-01-19 19:15:45 +03:00
use App\Models\OnlineDocuments;
2024-01-19 10:48:00 +03:00
use App\Models\User;
use Illuminate\Auth\Access\Response;
2024-01-19 19:15:45 +03:00
class OnlineDocumentsPolicy
2024-01-19 10:48:00 +03:00
{
/**
* Determine whether the user can view any models.
*/
public function viewAny(User $user): bool
{
//
}
/**
* Determine whether the user can view the model.
*/
2024-01-19 19:15:45 +03:00
public function view(User $user, OnlineDocuments $doceumentsOnline): bool
2024-01-19 10:48:00 +03:00
{
//
}
/**
* Determine whether the user can create models.
*/
public function create(User $user): bool
{
//
}
/**
* Determine whether the user can update the model.
*/
2024-01-19 19:15:45 +03:00
public function update(User $user, OnlineDocuments $doceumentsOnline): bool
2024-01-19 10:48:00 +03:00
{
//
}
/**
* Determine whether the user can delete the model.
*/
2024-01-19 19:15:45 +03:00
public function delete(User $user, OnlineDocuments $doceumentsOnline): bool
2024-01-19 10:48:00 +03:00
{
//
}
/**
* Determine whether the user can restore the model.
*/
2024-01-19 19:15:45 +03:00
public function restore(User $user, OnlineDocuments $doceumentsOnline): bool
2024-01-19 10:48:00 +03:00
{
//
}
/**
* Determine whether the user can permanently delete the model.
*/
2024-01-19 19:15:45 +03:00
public function forceDelete(User $user, OnlineDocuments $doceumentsOnline): bool
2024-01-19 10:48:00 +03:00
{
//
}
}