Admin scaffold to use with Skully Framework
Include this into your composer:
"require": {
"skullyframework/admin": "0.1.*"
}
Then update your composer.
And then, basically look at vendor/skullyframework/skully-project/Tests/app/ and just follow the structure of that test app within your application.
In your App\Application class, add the following:
use SkullyAdmin\AdminTrait;
...
class Application extends \Skully\Application {
use AdminTrait;
protected function setupTheme() {
parent::setupTheme();
$this->addAdminTemplateDir();
}
...
}
Copy vendor/skullyframework/skully-project/Tests/app/public/default/resources/images/admin to public/default/resources/images/admin. Copy vendor/skullyframework/skully-project/Tests/app/public/default/resources/js/admin to public/default/resources/js/admin. Copy vendor/skullyframework/skully-project/Tests/app/public/default/resources/js/plugins to public/default/resources/js/plugins.
There is a sample application ready in Tests/TestApp/app. To set this up:
- Clone this repository into your web server
git clone https://github.com/skullyframework/admin
. - Create a database named
skully_admin
andskully_admin_test
. - Browse to the test app
cd Tests/app
. - Run db migration
./console skully:schema db:migration
. - Browse to your app =======