skip to Main Content

Laravel 9: Dropzone js why showing [object object] and returns response (Method not allowed)?

I have an action class that runs across the entire app which handles file (images) uploads: class UploadImageAction implements UploadImageContract { public function handle(Request $request, $imageProperty, $image, $imageDir) { if ($request->hasFile($imageProperty)) { // Handle uploading lf_image if (!is_null($image) && Storage::exists($image))…

VIEW QUESTION

Returning wrong id in laravel

Departemen = 'nama_departemen', 'nama_manager', 'jumlah_pegawai', Pegawai = 'nomor_induk_pegawai', 'nama_pegawai', 'id_departemen', 'email', 'telepon', 'gender', 'status' PegawaiController public function index() { $pegawai = Pegawai::Join('departemens','pegawais.id_departemen','=','departemens.id')->paginate(5); return view ('pegawai.index', compact('pegawai')); } public function destroy($id) { Pegawai::find($id)->delete(); return redirect()->route('pegawai.index')->with(['success'=> 'Item Berhasil Dihapus']); } public function…

VIEW QUESTION

Target class does not exist. Routing Prefix Laravel 9

I am learning Laravel 9, and I got a problem Target class [AdminDashboardController] does not exist. when using prefix routing. Is someone can help me to fix it? this code on routes/web: Route::prefix('admin')->namespace('Admin')->group(function(){ Route::get('/','DashboardController@index')->name('dashboard'); }); this code on AppHttpControllersAdminDashboardController: namespace…

VIEW QUESTION
Back To Top
Search