Комментарии:
I have a problem
Call to a member function paginate() on null
public function index(){
$categories = Category::latest()->paginate(10);
return view('admin.category.list',compact('categories'));
}
good night sir
i have one proplem
Route::get('/getSlug', function(Request $request){
$slug = '';
if(!empty($request->title)) {
$slug = Str::slug($request->title);
}
return response()->json([
'status'=>true,
'slug'=>$slug
]);
})->name('getSlug');
and with the test show this proplem ( Undefined property '$title' )
sir, post method not support routes this problem arise, please give me source code
ОтветитьHello! I have difficulty in laravel 10 ecommecre part 5. error : route[getSlug] not defined.please help me fix it.
ОтветитьBrilliant explanation.
Ответитьi have a problem in jequery files please tell me why ???
ОтветитьHello, nice video :D
Btw. if you add - -resource during creating a new controller, it will automatically add empty index, create, store, show, edit update and destroy functions
Sis Str::slug apne banaya hai ya laravel ka default function hai agar apne banaya hai to kaise banaya hai
Ответитьundefined method flash how to solve this error
ОтветитьHello sir I'm unable to find this error please explain it
"The POST method is not supported for route admin/categories/create. Supported methods: GET, HEAD .
Thank you 🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰
ОтветитьThe name field is required
The slug field is required
kam nhi krra sir
Sir, can i get this code??
Ответить'slug' => fake()->name()->unique() Expected type 'object'. Found 'string'. Sir how i can solved this problem ? syntax unique is nothing object or string how ican solved that ? help sir
Ответить🥰
ОтветитьWhich Vscode extensions you installed?
ОтветитьGreat!🤩
ОтветитьHello.
That line creates an error for me; $request->session()->flash, on the word flash.
Is it necessary to add a session library something like that?