Download the PHP package hoppermagic/kobalt without Composer
On this page you can find all versions of the php package hoppermagic/kobalt. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hoppermagic/kobalt
More information about hoppermagic/kobalt
Files in hoppermagic/kobalt
Package kobalt
Short Description Set of reusable views and code to help building small scale Laravel backends
License MIT
Informations about the package kobalt
Set of admin views and functionality to speed up development of small custom Content Management Systems built in Laravel....
Steps for using
If it doesn't auto discover
Config/app.php
` Package will automatically add the following but you might want to add these in config.app
`
Setup db preferences
Run the standard laravel auth generator
`
Register yourself, disable the auth routes in web.php
Add the non-registration routes from Router.php (auth method) to web.php
Remember to comment out the Auth::routes()
From 5.8 it wont show register if the route doesn't exist.
app.blade.php also contains a reference to the register route, so need to comment out
`
Admin area web routes
could put these in their own admin.php file.....
`
Make sure the following are pointing to the admin homepage
Controllers\Auth\LoginController
Controllers\Auth\RegisterController
Controllers\Auth\ResetPasswordController
Middleware\RedirectIfAuthenticated
`
Css and Js links in admin template
app.blade.php
`
View Composer
FYI, KobaltServiceProvider makes sure the active variable is available in the admin nav partial, its pushing in segment(2) so make sure this is what you want. Undecided if this is a good thing.
Publish assets
admin js,
admin enhancements - Handy place for tiny_mce setup, select2 etc
css
admin images
admin nav partial
admin template
need to update this file with the latest structure from app.blade.php Pull in local version of tiny mce
use force to overwrite
after publishing amend the nav partial
`
Publish all admin views
`
Publish just the css and js
`
If you need to recompile the js/css
`
Create model, admin controller, form and request
Will create RabbitController etc
`
//!TODO config/app.php
//!TODO Notes about editable, deleteable, addable
Forms
Form Builder Static type is now escaped, so if you need to pass a view in need to use unescaped static.
`
Form fields on desktop will be 60% width unless
` Rich text fields
`