Blog - Installing
The enso blog package provides a basic blog functionality.
Installation
Install the Blog package
composer require yadda/enso-blogPublish assets
php artisan vendor:publish --provider "Yadda\Enso\Blog\EnsoBlogServiceProvider" --tag enso-blogRun migrations
php artisan migrateAdd routes to
routes/web.phpEnsoCrud::crudRoutes('admin/posts', 'post', 'admin.posts'); EnsoBlog::routes('posts', Yadda\Enso\Blog\Controllers\PostController::class, 'posts');Add item to admin menu in the
app/Providers/EnsoServiceProvider.phppublic function boot() { //... EnsoMenu::addItems([ Config::get('enso.crud.post.menuitem'), ]); }
Thumbnail Sizes
You can control the thumbnail URLs that are return in XHR requests by setting enso.blog.thumbnail_sizes. The keys of this array are the names of the will be used on the frontend and the values are the Enso Media preset names that will be used. Bear in mind that due to a limitation in JavaScript the frontend names (i.e. the keys of this array) cannot must begin with a letter and not a number.