I downloaded CMS project from github, Laravel version 5.2. I installed the composer in the folder and change the database info in .env file and the project working fine.
But only the home route is working, the rest of the routes giving me "Opps no page avaible"
The blades files are fine only the routes not working!
<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
Route::get('/', function () {
return view('welcome');
});
Route::auth();
Route::get('/home', 'HomeController@index');
Route::get('/post/{id}', ['as' => 'home.post', 'uses' => 'AdminPostsController@post']);
Route::group(['middleware' => 'admin'], function () {
Route::get('/admin', ['as' => 'admin.index', function () {
return view('admin.index');
}]);
Route::resource('admin/users', 'AdminUsersController');
Route::resource('admin/posts', 'AdminPostsController');
Route::resource('admin/categories', 'AdminCategoriesController');
Route::resource('admin/medias', 'AdminMediasController');
Route::resource('admin/comments', 'PostCommentsController');
Route::resource('admin/comment/replies', 'CommentRepliesController');
});
Route::group(['middleware' => 'auth'], function () {
Route::post('comment/reply', 'CommentRepliesController@createReply');
});
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire