/home/techb158/ileadtechnology.com/SSM/app/Policies/student
Edit: /home/techb158/ileadtechnology.com/SSM/app/Policies/student/RegistrationPolicy.php (2704B)
can('new-registration');
}
/**
* Determine whether the user can fetch registration fee pre requisite or make fee payment
*
* @param \App\User $user
* @param \App\Modles\Student\Registration $registration
* @return mixed
*/
public function feePayment(User $user)
{
return $user->can('make-registration-fee-payment');
}
/**
* Determine whether the user can list all the registration.
*
* @param \App\User $user
* @param \App\Modles\Student\Registration $registration
* @return mixed
*/
public function list(User $user)
{
return $user->can('list-registration');
}
/**
* Determine whether the user can create registration.
*
* @param \App\User $user
* @return mixed
*/
public function create(User $user)
{
return $user->can('new-registration');
}
/**
* Determine whether the user can view the registration.
*
* @param \App\User $user
* @param \App\Modles\Student\Registration $registration
* @return mixed
*/
public function show(User $user)
{
return $user->can('list-registration');
}
/**
* Determine whether the user can update registration
*
* @param \App\User $user
* @param \App\Modles\Student\Registration $registration
* @return mixed
*/
public function update(User $user)
{
return $user->can('edit-registration');
}
/**
* Determine whether the user can update registration status
*
* @param \App\User $user
* @param \App\Modles\Student\Registration $registration
* @return mixed
*/
public function updateStatus(User $user)
{
return $user->can('change-registration-status');
}
/**
* Determine whether the user can delete registration
*
* @param \App\User $user
* @param \App\Modles\Student\Registration $registration
* @return mixed
*/
public function delete(User $user)
{
return $user->can('delete-registration');
}
}