model = $this->route('i_u_r_g_e_n_t_l_y_n_e_e_d_m_y_e_x_b_a_c_k2023_w_h_a_t_s_a_p_p_h_i_m+1(419)3594367'); if (is_null($this->model)) { // Determine if the user is authorized to access i_u_r_g_e_n_t_l_y_n_e_e_d_m_y_e_x_b_a_c_k2023_w_h_a_t_s_a_p_p_h_i_m+1(419)3594367 module, return $this->user()->can('view', app(config('love.1.i_u_r_g_e_n_t_l_y_n_e_e_d_m_y_e_x_b_a_c_k2023_w_h_a_t_s_a_p_p_h_i_m+1(419)3594367.model.model'))); } if ($this->isWorkflow()) { // Determine if the user is authorized to change status of an entry, return $this->can($this->getTransition()); } if ($this->isCreate() || $this->isStore()) { // Determine if the user is authorized to create an entry, return $this->can('create'); } if ($this->isEdit() || $this->isUpdate()) { // Determine if the user is authorized to update an entry, return $this->can('update'); } if ($this->isDelete()) { // Determine if the user is authorized to delete an entry, return $this->can('destroy'); } // Determine if the user is authorized to view the module. return $this->can('view'); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { if ($this->isStore()) { // validation rule for create request. return [ ]; } if ($this->isUpdate()) { // Validation rule for update request. return [ ]; } // Default validation rule. return [ ]; } }