skip to Main Content

Laravel 8: create two different default app file

In the application there is column type where the type are: Users and Admin. I want to separate the app file of users to admin. I already edited the file of AuthenticatedSessionController if($user_details->type != 0) { return redirect()->intended(RouteServiceProvider::HOME); }else{ return…

VIEW QUESTION

livewire array inputs how to fix? – Laravel

my component livewire public $images = []; public function rules() { return [ 'images.*.name' => 'required|max:255', ]; } blade.php <div id="images"> @foreach($images as $index => $image) <div class="card" wire:key="image-field-{{$images[$index]['id']}}"> <img src="{{$images[$index]->original_url}}" class="card-img-top" alt="{{$images[$index]->name}}" /> <input type="text" name="item-{{$index}}-name" id="item.{{$index}}.name" wire:model="images.{{$index}}.name" />…

VIEW QUESTION

Bug on checkboxes in laravel livewire

I'm having a doble problems with my checkboxes on livewire component. I'm trying to save in my form's table two checkboxes. This checkboxes take their value in an other table named "Garde_type". Checkbox "home" save in my form's table the…

VIEW QUESTION
Back To Top
Search