@@ -71,7 +71,7 @@ |
||
71 | 71 | ->success('Your permission has been updated successfully !'); |
72 | 72 | } |
73 | 73 | |
74 | - public function render(): View|Application|Factory|\Illuminate\View\View |
|
74 | + public function render(): View | Application | Factory | \Illuminate\View\View |
|
75 | 75 | { |
76 | 76 | return view('livewire.admin.permission.update-permission'); |
77 | 77 | } |
@@ -80,7 +80,7 @@ |
||
80 | 80 | 'created_at' |
81 | 81 | ]; |
82 | 82 | |
83 | - public function render(): View|Application|Factory|\Illuminate\View\View |
|
83 | + public function render(): View | Application | Factory | \Illuminate\View\View |
|
84 | 84 | { |
85 | 85 | return view('livewire.admin.permission.role', [ |
86 | 86 | 'roles' => $this->rows |
@@ -68,7 +68,7 @@ |
||
68 | 68 | ->success('Your permission has been created successfully !'); |
69 | 69 | } |
70 | 70 | |
71 | - public function render(): View|Application|Factory|\Illuminate\View\View |
|
71 | + public function render(): View | Application | Factory | \Illuminate\View\View |
|
72 | 72 | { |
73 | 73 | return view('livewire.admin.permission.create-permission'); |
74 | 74 | } |
@@ -77,7 +77,7 @@ |
||
77 | 77 | ->success("The role $role->name has been updated successfully !"); |
78 | 78 | } |
79 | 79 | |
80 | - public function render(): View|Application|Factory|\Illuminate\View\View |
|
80 | + public function render(): View | Application | Factory | \Illuminate\View\View |
|
81 | 81 | { |
82 | 82 | // Select all permissions except `bypass login` which is handled by a checkbox. |
83 | 83 | $permissions = Permission::where('name', '<>', 'bypass login') |
@@ -69,7 +69,7 @@ |
||
69 | 69 | ->success("The role $role->name has been created successfully !"); |
70 | 70 | } |
71 | 71 | |
72 | - public function render(): View|Application|Factory|\Illuminate\View\View |
|
72 | + public function render(): View | Application | Factory | \Illuminate\View\View |
|
73 | 73 | { |
74 | 74 | // Select all permissions except `bypass login` which is handled by a checkbox. |
75 | 75 | $permissions = Permission::where('name', '<>', 'bypass login') |
@@ -70,11 +70,11 @@ |
||
70 | 70 | * |
71 | 71 | * @var Collection|array |
72 | 72 | */ |
73 | - public Collection|array $categoriesSearchable = []; |
|
73 | + public Collection | array $categoriesSearchable = []; |
|
74 | 74 | |
75 | 75 | protected function rules(): array |
76 | 76 | { |
77 | - $rules = [ |
|
77 | + $rules = [ |
|
78 | 78 | 'title' => 'required|min:5', |
79 | 79 | 'category_id' => [ |
80 | 80 | 'required', |
@@ -22,7 +22,7 @@ |
||
22 | 22 | * |
23 | 23 | * @return Response|RedirectResponse|BinaryFileResponse |
24 | 24 | */ |
25 | - public function handle(Request $request, Closure $next): Response|RedirectResponse|BinaryFileResponse |
|
25 | + public function handle(Request $request, Closure $next): Response | RedirectResponse | BinaryFileResponse |
|
26 | 26 | { |
27 | 27 | BlogArticle::addGlobalScope(new PublishedScope()); |
28 | 28 |