Package Customize Routing in Laravel without editing routes -


I am developing an application with Laravel 4, I need to develop an admin package for my application I edit routes of application Php file,

Question: How to develop such a package, which automatically creates its own routes without manually editing the routes. For example, after adding the package for the application, a URL was added to myapplication / admin application

Package service providers, routes found within the package source files, allowing you to access routes within the package in the boot method within your service provider. Php should be included. Like the following;

  public function boot () {$ this- & gt; Package ('seller / package'); Includes __DIR __. '/ .. / .. / routes.php'; }  


Comments