|
|
|
@ -28,11 +28,10 @@ class {$this->model_name}Policy |
|
|
|
use HandlesAuthorization; |
|
|
|
|
|
|
|
/** |
|
|
|
* Determine whether the user can view the project. |
|
|
|
* |
|
|
|
* @param \\{$userModel} \$user |
|
|
|
* @param \\{$this->full_model_name} \${$this->single_model_var_name} |
|
|
|
* Determine whether the user can view the $this->lang_name. |
|
|
|
* |
|
|
|
* @param \\{$userModel} \$user |
|
|
|
* @param \\{$this->full_model_name} \${$this->single_model_var_name} |
|
|
|
* @return mixed |
|
|
|
*/ |
|
|
|
public function view(User \$user, {$this->model_name} \${$this->single_model_var_name}) |
|
|
|
@ -42,11 +41,10 @@ class {$this->model_name}Policy |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Determine whether the user can create projects. |
|
|
|
* |
|
|
|
* @param \\{$userModel} \$user |
|
|
|
* @param \\{$this->full_model_name} \${$this->single_model_var_name} |
|
|
|
* Determine whether the user can create $this->lang_name. |
|
|
|
* |
|
|
|
* @param \\{$userModel} \$user |
|
|
|
* @param \\{$this->full_model_name} \${$this->single_model_var_name} |
|
|
|
* @return mixed |
|
|
|
*/ |
|
|
|
public function create(User \$user, {$this->model_name} \${$this->single_model_var_name}) |
|
|
|
@ -56,11 +54,10 @@ class {$this->model_name}Policy |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Determine whether the user can update the project. |
|
|
|
* |
|
|
|
* @param \\{$userModel} \$user |
|
|
|
* @param \\{$this->full_model_name} \${$this->single_model_var_name} |
|
|
|
* Determine whether the user can update the $this->lang_name. |
|
|
|
* |
|
|
|
* @param \\{$userModel} \$user |
|
|
|
* @param \\{$this->full_model_name} \${$this->single_model_var_name} |
|
|
|
* @return mixed |
|
|
|
*/ |
|
|
|
public function update(User \$user, {$this->model_name} \${$this->single_model_var_name}) |
|
|
|
@ -70,11 +67,10 @@ class {$this->model_name}Policy |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Determine whether the user can delete the project. |
|
|
|
* |
|
|
|
* @param \\{$userModel} \$user |
|
|
|
* @param \\{$this->full_model_name} \${$this->single_model_var_name} |
|
|
|
* Determine whether the user can delete the $this->lang_name. |
|
|
|
* |
|
|
|
* @param \\{$userModel} \$user |
|
|
|
* @param \\{$this->full_model_name} \${$this->single_model_var_name} |
|
|
|
* @return mixed |
|
|
|
*/ |
|
|
|
public function delete(User \$user, {$this->model_name} \${$this->single_model_var_name}) |
|
|
|
@ -144,11 +140,10 @@ class {$this->model_name}Policy |
|
|
|
use HandlesAuthorization; |
|
|
|
|
|
|
|
/** |
|
|
|
* Determine whether the user can view the project. |
|
|
|
* |
|
|
|
* @param \\{$userModel} \$user |
|
|
|
* @param \\{$this->full_model_name} \${$this->single_model_var_name} |
|
|
|
* Determine whether the user can view the $this->lang_name. |
|
|
|
* |
|
|
|
* @param \\{$userModel} \$user |
|
|
|
* @param \\{$this->full_model_name} \${$this->single_model_var_name} |
|
|
|
* @return mixed |
|
|
|
*/ |
|
|
|
public function view(User \$user, {$this->model_name} \${$this->single_model_var_name}) |
|
|
|
@ -158,11 +153,10 @@ class {$this->model_name}Policy |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Determine whether the user can create projects. |
|
|
|
* |
|
|
|
* @param \\{$userModel} \$user |
|
|
|
* @param \\{$this->full_model_name} \${$this->single_model_var_name} |
|
|
|
* Determine whether the user can create $this->lang_name. |
|
|
|
* |
|
|
|
* @param \\{$userModel} \$user |
|
|
|
* @param \\{$this->full_model_name} \${$this->single_model_var_name} |
|
|
|
* @return mixed |
|
|
|
*/ |
|
|
|
public function create(User \$user, {$this->model_name} \${$this->single_model_var_name}) |
|
|
|
@ -172,11 +166,10 @@ class {$this->model_name}Policy |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Determine whether the user can update the project. |
|
|
|
* |
|
|
|
* @param \\{$userModel} \$user |
|
|
|
* @param \\{$this->full_model_name} \${$this->single_model_var_name} |
|
|
|
* Determine whether the user can update the $this->lang_name. |
|
|
|
* |
|
|
|
* @param \\{$userModel} \$user |
|
|
|
* @param \\{$this->full_model_name} \${$this->single_model_var_name} |
|
|
|
* @return mixed |
|
|
|
*/ |
|
|
|
public function update(User \$user, {$this->model_name} \${$this->single_model_var_name}) |
|
|
|
@ -186,11 +179,10 @@ class {$this->model_name}Policy |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Determine whether the user can delete the project. |
|
|
|
* |
|
|
|
* @param \\{$userModel} \$user |
|
|
|
* @param \\{$this->full_model_name} \${$this->single_model_var_name} |
|
|
|
* Determine whether the user can delete the $this->lang_name. |
|
|
|
* |
|
|
|
* @param \\{$userModel} \$user |
|
|
|
* @param \\{$this->full_model_name} \${$this->single_model_var_name} |
|
|
|
* @return mixed |
|
|
|
*/ |
|
|
|
public function delete(User \$user, {$this->model_name} \${$this->single_model_var_name}) |
|
|
|
|