Support the ongoing development of Laravel.io →
Configuration Requests Packages

I am attempting my first workbench / package and so far no good.

Created 1 GroupsController added / tried both of these 4 routes in the Myname/Mypackage/src routes.php

Route::get('/groups', array( 'as' => 'groups.index', 'uses' => 'Myname\Mypackage\Controllers\GroupsController@index') );

Route::get('/groups', array( 'as' => 'groups.index', 'uses' => 'Myname\Mypackage\GroupsController@index') );

Route::resource('groups', 'Myname\Mypackage\GroupsController');

Route::resource('groups', 'Myname\Mypackage\Controllers\GroupsController');

And all I get is Myname\Mypackage\GroupsController not found;

ServiceProvider boot() has include DIR.'/../../routes.php';

If I echo "hello there'; die(); in boot that works so I know I am getting into the package, just does not want to let me access the controllers.

Help would be great.

Thanks,

Dave

Last updated 3 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

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.

© 2025 Laravel.io - All rights reserved.