Download the PHP package iankov/control-panel without Composer
On this page you can find all versions of the php package iankov/control-panel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package control-panel
Installation
-
Update guards, providers, passwords in
config/auth.php
-
Publish config file
-
Publish public assets
-
Publish migrations
-
Publish seeds
-
Run migrations
-
Run dump autoload
- Run seeder to insert initial admin user. Login: [email protected], Password: admin
Elfinder file manager integration
-
Add the ServiceProvider to the providers array in
app/config/app.php
-
You need to copy the assets to the public folder, using the following artisan command:
-
Copy
vendor/iankov/control-panel/public/packages/barryvdh
topublic/barryvdh
. You can do this by publishing iankov/control-panel assets -
Publish the config file
-
Change elfinder config
- Create 'images' folder in your public dir to match
roots.images
config path
Developing a new module
Basic concept
Basic concept of building a module is to make a separate route file for the module. You can place it in a standard folder. I.e. if you make a module to create and delete news, it could be file with the following content:
Registering a module
When you make a new module, you need to add it to . Minimum requirement is to add route path to the array like this:
Optional parameter defines a namespace for our controller. In our case is most likely located in
Adding menu item
After you register a module, you'll be able to use routes in like this:
This will add a new menu item into master template menu of your control panel.
If you don't register your module you'll get an error when using or function in .
However you can always use a regular string to define a . It could be relative path like or a full url like .
**** function is the same as standard laravel except that it adds the prefix on the beginning of the given route.
I.e. (by default)
then is equal to
Views
Most likely you'd want to use a master template of for you admin panel pages.
This can easily be done by extending your blade template.
Sections available:
-
- obviously it's a title
-
- it can be any html, javascript, css, etc... to be inserted in the main part of master template
Changing stardard iankov/control-panel views
For this purpose just publish all views to directory.
Now you have a set of files available for making changes in .
Horizontal form groups
- Create horizontal group elements like this
When validation error occured, text of an error be shown in the bottom of the field. The field itself will have a red border.
-
Required array fields:
- name - html field name attribute
- label - label text
- value - value of html element
- items - only for icp::forms.horizontal.select-group. Array/object of items for \
-
Additional array fields:
- attr - array, any html attribute applied to html field
- col1_class - first column class (default: col-sm-2)
- col1_class - second column class (default: col-sm-10)
- prepend - the same as items only for select-group, but these elements stay in front of other options
-
Example of form group usage.
-
Create \ element
-
Create \
-
Create \ element
- Create \
-
All versions of control-panel with dependencies
yajra/laravel-datatables-oracle Version ^8.3
barryvdh/laravel-elfinder Version ^0.3.11