On your hosting it should be website.com/courses if installed correctly. Otherwise search for shared hosting on Laracasts or on Google, there must be at least 1 000 000 posts on this subject.
routes doesn't work unless i use artisan serve
Hello guys,
I've finished a project and I'm in deployment state but I'm facing a WEIRD problem , on my laptop I normally use php artisan serve to test my website and all things work just fine and smooth , however when I published it on my hosting -shared- and visit website/public/courses ... wel I get a 404 Not Found page ... I thought it was from my server but when I tried not to use php artisan serve in my laptop and visit localhost/projectName/public/courses I get the same exact page !
I use php artisan serve and visit the same page and it works ! what is the problem form !
here is my routes
Route::get('/','HomeController@index'); Route::get('/home', 'HomeController@index'); Route::get('courses','HomeController@courses'); Route::get('course/{id}','HomeController@course'); Route::get('events','HomeController@events'); Route::resource('subscribe','BeneficiaryController'); Route::group(['prefix' => 'admin', 'middleware' => 'auth'], function() { Route::get('/', function () { return view('admin.index'); }); Route::resource('/courses', 'admin\CoursesController'); Route::delete('/courses/{id}/delete', 'admin\CoursesController@destroy'); Route::resource('/events', 'eventsController'); Route::delete('/events/{id}/delete', 'eventsController@destroy'); Route::get('/subscribtions','AdminController@users'); Route::get('/subscribtions/course/{id}','AdminController@courseUsers'); Route::get('/subscribtions/event/{id}','AdminController@eventUsers'); });
not ,I'm using linux with Apache 2 server
Please or to participate in this conversation.