Support the ongoing development of Laravel.io →
Configuration Views Blade
Last updated 2 years ago.
0

Do You set the right Path in the config.php?

Last updated 2 years ago.
0

Where do i find config.php?

Last updated 2 years ago.
0

Sorry. I mean the app.php. There is a array Key URL....

Last updated 2 years ago.
0

yes, this i set to: 'url' => 'http://localhost/mylaravel'

Last updated 2 years ago.
0

In advice of jarektkaczyk, I grouped my resources in routes.php

Route::group(array('prefix' => 'phptodomanager'), function() {
    // Controllers
    Route::resource ('priorities', 'PrioritiesController');
    Route::resource ('projects', 'ProjectsController');
    Route::resource ('status', 'StatusController');
    Route::resource ('todos', 'TodosController');
    });

When i use <?php echo route ('phptodomanager.priorities.index'); ?> it generates a correct url with the prefix.

But if I open the link, it leads me to ­RouteCollection.php --> NotFoundHttpException


Learned that group for resources dont work, so I produced them:

Route::resource ('phptodomanager/priorities', 'PrioritiesController');
Route::resource ('phptodomanager/projects', 'ProjectsController');
Route::resource ('phptodomanager/status', 'StatusController');
Route::resource ('phptodomanager/todos', 'TodosController');

But with route('phptodomanager.priorities.index'); still getting NotFoundHttpException

Last updated 2 years ago.
0

try not using resources routing

  Route::group(array('prefix' => 'phptodomanager'), function() {
         // Controllers
        Route::get ('/priorities', array('uses'=>'PrioritiesController@yourMethod');
    });

and see what's the diffrent

Last updated 2 years ago.
0

i tried it with

Route::group(array('prefix' => 'phptodomanager'), function() {
    // Controllers
    Route::get ('/priorities', array('as' => 'priorities', 'uses' => 'PrioritiesController@index'));
});

remains the same result, correct url but NotFoundHttpException

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

mavarazo mavarazo Joined 28 Mar 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.