Open phillipmadsen opened 8 years ago
Like that above shown, also following style:
/posts /posts/comments
/*
* ----------------- Post Routes --------------
*/
Route::resource("posts", "PostController");
Route::group(['prefix' => 'posts'], function ()
{
/*
* ----------------- Comment Routes --------------
*/
Route::resource("comments", "CommentController");
Route::group(['prefix' => 'comments'], function ()
{
moving to the second milestone. Because we are going to implement some Exception handler stuff rather than just throwing 404 errors. #130
Many ways to do this but as of right now the routes are only working some of the time.
Here is an example using model binding into route:
Add this right into the routes file or a seperate file and include it like you did with api_routes.php
*/
require config('infyom.laravel_generator.path.route_model_binding_file');