Download the PHP package tychovbh/laravel-mvc without Composer
On this page you can find all versions of the php package tychovbh/laravel-mvc. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tychovbh/laravel-mvc
More information about tychovbh/laravel-mvc
Files in tychovbh/laravel-mvc
Package laravel-mvc
Short Description Add mvc structure to laravel
License MIT
Homepage https://github.com/tychovbh/laravel-mvc
Informations about the package laravel-mvc
laravel-mvc
Laravel MVC is created by, and is maintained by Tycho, and is a Laravel/Lumen package to manage all your data via a Repository. Feel free to check out the contribution guidelines
Install
Via Composer
For lumen application add Service Provider to bootstrap/app.php
Usage
Repositories
Create a Repository:
Use The UserRepository in controller, but you can use it anywhere else too.
Make sure you have a Model that your repository can use. If you want to use save/update methods add $filled to your model.
Available methods"
If you wish to override on of the methods above just add it to you repository
Controllers
Create a Controller:
All Laravel Resource methods are now available (index, show, store, update, destroy). See their documentation here for setting up routes: laravel resource controllers.
You can override Resource methods to do project related stuff
Form Requests
Create a Form Request:
You can use the request middleware "valdiate" to validate the request. It will look for the FormRequest and validate it So for example model User:
- store request (POST /users) will look for a FormRequest with name StoreUser
- update request (UPDATE /user/{id}) will look for a FormRequest with name UpdateUser
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
Contributing
Please see CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-mvc with dependencies
ext-json Version *
anam/phantomjs-linux-x86-binary Version ^2.1
anam/phantommagick Version ^2.0
chelout/offset-pagination Version dev-master
guzzlehttp/guzzle Version ^7.2
illuminate/console Version ~5.6.0|~5.7.0|~5.8.0|~5.9.0|~6.0
illuminate/contracts Version ~5.6.0|~5.7.0|~5.8.0|~5.9.0|~6.0
illuminate/database Version ~5.6.0|~5.7.0|~5.8.0|~5.9.0|~6.0
illuminate/http Version ~5.6.0|~5.7.0|~5.8.0|~5.9.0|~6.0
illuminate/mail Version ~5.6.0|~5.7.0|~5.8.0|~5.9.0|~6.0
illuminate/support Version ~5.6.0|~5.7.0|~5.8.0|~5.9.0|~6.0
mollie/laravel-mollie Version ^2.0
rbdwllr/reallysimplejwt Version ^2.0
tychovbh/laravel-package-skeleton Version ^1.3
urameshibr/lumen-form-request Version ^1.5