Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import items from autogenerated crud file #64

Open
phillipmadsen opened this issue Sep 1, 2015 · 1 comment
Open

Import items from autogenerated crud file #64

phillipmadsen opened this issue Sep 1, 2015 · 1 comment

Comments

@phillipmadsen
Copy link

Is there a way to import the necessary items from a different file. here is an example.

public function handle($request, Closure $next)
{
@include('AdminMenu.php');
return $next($request);
}

and inside adminmenu.php I have items that are autogenerated from my crud builder script.

Menu::make('ecommerce', function($menu) {
$menu->add('Users', 'admin/users')->prepend('')->active('admin/*');;
$menu->users->add('Add User', 'admin/users/create');
});

@ghost
Copy link

ghost commented Feb 24, 2016

Yes, but you need to work with Menu::make() and Menu::get() methods.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant