Download the PHP package alexwenzel/cmsbasics without Composer
On this page you can find all versions of the php package alexwenzel/cmsbasics. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alexwenzel/cmsbasics
More information about alexwenzel/cmsbasics
Files in alexwenzel/cmsbasics
Package cmsbasics
Short Description A package for Laravel, which I use to build repetitive resource Items.
License
Informations about the package cmsbasics
my cms basics for laravel
A package for Laravel, which I use to build repetitive resource Items.
Model
Create a model for your new resource item.
The resource model should have a static $rules
property, which contain all resource rules.
``
Controller
Create a new controller by extending the base resource controller. In the constructor you can specify some settings.
dependency
=> your resource item's modelresource_name
=> the identifier of your resource, the one you use atRoute::resource()
view_dir
=> path to the rescource views
``
Then register the controller in your routes.
``
Customize behaviour
You cann customize the behaviour of the base resource controller by overriding specific methods
``
Events
The following Events are fired within the base resource controller:
index
`
create
`
store
`
Passes the newly created resource as the first argument.
show
`
Passes the requested resource as the first argument.
edit
`
Passes the requested resource as the first argument.
update
`
Passes the updated resource as the first argument.
destroy
`
View
This package comes with default views for all actions (index, create, show, edit). Publish the package views as a starting point.
`
Copy the package views to a new folder and customize them.
``