Download the PHP package wislem/scaffenger without Composer
On this page you can find all versions of the php package wislem/scaffenger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package scaffenger
Scaffenger for Laravel 5.1
A scaffolding generator for any database setup ;)
It has its own UI (can be swapped with any custom made template).
Supports a total of 17 column types including:
Column type | Description | |
---|---|---|
pk |
The primary key of the table (usually id ) |
|
slug |
A varchar that gets slugified by the column with name title and type text |
|
text |
Plain text | |
textarea |
Plain textarea | |
password |
A password column (has several functionalities for changing it or not preloading its value etc.) | |
wysiwyg |
It's a textarea marked as a wysiwyg along with the proper css class to load your preferred js editor (I'm using summernote here) | |
date |
A date field that gets formatted according to your needs and shows a datepicker in forms | |
datetime |
See date plus time support |
|
fk |
If your table has relationships, then this type is for you | |
image |
Using dropzone.js to handle this on forms, shows thumbnail with lightbox in list view | |
file |
TODO |
|
bool |
A 0 | 1 column |
order |
input[type="number"] in forms and can be updated in the list view on the fly | |
select |
A set of custom selections (can be anything in your db table -- enum, tinyint... w/e) | |
url |
Text column (input[type="url"] in forms) | |
number |
Int column (input[type="number"] in forms) | |
email |
Email column (input[type="email"] in forms) | |
address |
TODO |
Installation steps
Step 1: Install package
Add the package inside your composer.json requirements:
Add the ServiceProvider to your config/app.php
file:
In the User class, add the ShinobiTrait:
Step 2: Publish
This will publish the following:
- Config files
- Migrations
- Seeds
- Assets
- Views
Step 3: Run migrations and seeds
Add seeds to your main DatabaseSeeder
class
Migrate and seed:
That last command is so that Scaff's seeders will be autoloaded.
Result of the above actions
- DB tables:
users
,password_resets
(default Laravel migration)permissions
,roles
,permission_role
,role_user
(Pingpong\Trusty migrations)media
,tests
(Scaffenger's migrations) - Seeds
- Roles
- Administrator
- Moderator
- Member
- Permission
- access.admin
- Users
- [email protected]:admin
- Roles
Step 4
Navigate to /admin and play around.
What now?
Create your db table config files inside
based on
E.g.
and then you can navigate to
to manage your db table through the UI.
Don't forget to add your newly created scaffold to the menu
Set your own custom controller for Scaffenger's custom actions like so:
Create your custom controller in your app/Http/Controllers
and set the route in /config/scaffenger/config.php
All versions of scaffenger with dependencies
illuminate/support Version >=5.1.0
laravelcollective/html Version ~5.0
pingpong/trusty Version 2.1.*@dev
folklore/image Version 0.2.*