dev-master
9999999-devAdds an editable content area to Laravel.
MIT
by George Fehr
laravel blade editable contentarea
1.0.0
1.0.0.0Adds an editable content area to Laravel.
MIT
by George Fehr
laravel blade editable contentarea
Wallogit.com
2017 © Pedro Peláez
Adds an editable content area to Laravel.
Adds an editable content area directive to the Laravel Blade templating engine., (*1)
Require the package in your composer.json file, (*2)
{
"require": {
"cirruslab/laravel-content-area": "dev-master"
},
}
Then run composer update from your command line, (*3)
Add the following to the list of service providers in app/config/app.php, (*4)
Cirruslab\LaravelContentArea\ContentAreaServiceProvider::class
Run the publish command which will publish the config file and assets., (*5)
php artisan vendor:publish --tag=contentarea
And migrate the database., (*6)
php artisan migrate
Setup permissions for who has permissions to edit the content areas in app/config/contentarea.php and adding a list of email addresses to the $editors array. Alternatively you can modify the can_edit function to integrate with your existing user authorization system., (*7)
Include the CKEditor javascript file in the head of your application layout file., (*8)
<script src="/js/ckeditor/ckeditor.js"></script>
````
Now you can simply use the `@content_area('area_name')` tag in your Blade template file. Note that the 'area_name' needs to be unique for each separate area, but you can add as many areas on a page as you want.
__Note:__ If you change an area name, you will need to remove the cached Blade views in order for the changes to show up. You can do this by running the following command.
```bash
php artisan view:clear
Adds an editable content area to Laravel.
MIT
laravel blade editable contentarea
Adds an editable content area to Laravel.
MIT
laravel blade editable contentarea