skip to Main Content

When you give a 404 NOT FOUND , even though I am using it route resource . I don't go to any page – Laravel

When you give a 404 NOT FOUND, even though I am using it route resource. I don't go to any page Route::resource('/' , ClientController::class) <tbody> @forelse($clients as $client) <tr> <th scope="row">{{$client->id}}</th> <td>{{$client->email}}</td> <td>{{$client->password}}</td> <td>{{$client->city}}</td> <td><a href="{{route('edit',$client->id)}}" >Update</a></td> </tr> <tr> @empty…

VIEW QUESTION

Retrieve single record in eloquent Laravel

Help me little please. I can't filtering single record. May be or not. // In Controller public function show(Post $post) { $post = Post::with(['comments' => function($query) { $query->where('status', 'active'); } ])->find($post); // can't filter comments return view('post.show', ['post' => $post]);…

VIEW QUESTION
Back To Top
Search