Base MVC
What is Base MVC
Base MVC is our own core framework which extends the laravel framwork to our special needs. All stuff you see will go through it, like:
Why do we need Base MVC?
- Define our own default behavior for MVCs
- Define our own HTML pages and style
- Define our own cool, fancy and responsive look and feel – use bootstrap: color admin topic
- Provide a interface to often required stuff and make life easier: For Example
Create functions to solve the following common obstacles:- Index Page: Which values do we want to displayed in index view?
- Edit Page: Which fields should be editable in edit view?
- Edit Page: Show other connected relational tables
- For Fast and easy development (with no/less knowledge of what happens inside Base MVC and L5)
- To provide a kind of abstraction layer, for easy changing the default behavior in the entire project
Supported Views:
- Index
- Edit
- Create
See: ressources/views/Generic
Supported Methods:
- create
- store
- update
- destroy
See: app/Http/Controllers/BaseController.php
Supported Routes:
- index
- store
- create
- update
- destroy
- dump
...
Most of the MVCs are connected with the BaseRoute Class, like
modules/ProvBase/Http/routes.php
BaseRoute::resource('Modem', 'Modules\ProvBase\Http\Controllers\ModemController');
To get a full view of how things are routed by default, check: app/extensions/core/BaseRoute.php