Post Thumbnail

Laravel project not running suddenly , how to solve

i am learning Laravel thru CDL laravel 9 course beginners ...... i had reached till video 61 pagination and had done some paginate work suddenly when i run the project the error came which is in the image

7 Comments
Solved
Post Thumbnail

Download files button logic and coding

How to create download buttons icons in Laravel like the buttons on this site :https://www.dawateislami.net/bookslibrary/and the buttons should also download the related file etc pdf , mp4 and mp3 whatever file is attached and the download button is for download means i want to know the full coding and logic of dowload file button in Laravel not only how to make this button in frontend

6 Comments
Solved
Post Thumbnail

Host laravel application

Hello sir,My client purchased hosting from HawkHost and domain from Fasthosts, can you please guide me how can host my site.Thanks

2 Comments
Answered
Post Thumbnail

Laravel cms: description display not working

When ever i use {!! Str::limit($post->description, 15) !!} it display nothing in the output but if i did not use that it will diplay html character in my output

0 Comments
Answered
Post Thumbnail

Getting 404 error

Web File:Route::prefix('auth')->middleware(['auth'])->group(function(){    //Route::view('/','auth.dashboard');    Route::get('/dashboard', [DashboardController::class, 'dashboard'])->name('dashboard')->middleware('auth');    Route::resource('/posts', PostController::class);    Route::resource('/stations', StationController::class);    Route::resource('/airqualities', AirqualityController::class);    Route::get('/airqualities/import',[AirqualityController::class, 'import'])->name('airqualities.import');    Route::post('/airqualities/import',[AirqualityController::class, 'importSave'])->name('airqualities.importSave');    Route::resource('/categories', CategoryController::class);    Route::get('/categories/download/{filename}',[CategoryController::class, 'download'])->name('categories.download');    Route::resource('/modules', ModuleController::class);    Route::get('/modules/download/{filename}/{filetype?}',[ModuleController::class, 'download'])->name('modules.download');});Controller File:- public function import()    {        dd("dsadsadsad");        return view('auth.airqualities.import');    }    public function importSave(Request $request)    {        return view('auth.airqualities.import');    }Import File:-<?phpnamespace App\Imports;use App\Models\Airquality;use Maatwebsite\Excel\Concerns\ToModel;class AirqualitiesImport implements ToModel{    /**    * @param array $row    *    * @return \Illuminate\Database\Eloquent\Model|null    */    public function model(array $row)    {        return new Airquality([            'station_id' => $row[0],            'NO' => $row[1],            'NO2' => $row[2],            'NOx' => $row[3],            'NH3' => $row[4],            'SO2' => $row[5],            'CO' => $row[6],            'O3' => $row[7],            'PM25' => $row[8],            'PM10' => $row[9],            'airquality' => $row[10],            'AQI' => $row[11]        ]);    }}adssd

2 Comments
Solved