'prevent-back-history'],function(){ Route::get('resetPassword/{token}', 'ForgotPasswordController@resetPassword'); Route::post('updatePass', 'ForgotPasswordController@forgotstore')->name('updatePass'); Route::post('/sendPassword', 'ForgotPasswordController@store')->name('sendPassword'); Route::group(['namespace' => 'Client', 'namespace' => 'Client'], function() { Route::resource('signin', 'LoginController'); Route::resource('/signup', 'RegisterController'); Route::resource('profile', 'ProfileController'); Route::post('/changePass/{id}','ProfileController@changePassword')->name('changePass'); Route::get('/changePassword','ProfileController@create')->name('changePassword'); Route::get('/password', 'LoginController@forgotindex')->name('password'); Route::resource('order', 'OrderController'); Route::get('dashboard', 'OrderController@index'); Route::resource('/contactUs', 'ContactController'); }); }); Route::get('/download-zip/{type}', function ($type) { // Define file paths based on type $files = [ 1 => storage_path('app/zip/final3deditor.zip'), 2 => storage_path('app/zip/prodesigner.zip'), 3 => storage_path('app/zip/file3.zip') ]; if (isset($files[$type]) && file_exists($files[$type])) { return response()->download($files[$type]); } return response()->json(['error' => 'File not found'], 404); }); Auth::routes();