2017 © Pedro Peláez
 

library laravel-content-area

Adds an editable content area to Laravel.

image

cirruslab/laravel-content-area

Adds an editable content area to Laravel.

  • Tuesday, November 15, 2016
  • by cirruslab
  • Repository
  • 2 Watchers
  • 0 Stars
  • 8 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Editable Content Area for Laravel

Adds an editable content area directive to the Laravel Blade templating engine., (*1)

Installation

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)

Usage

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

The Versions

15/11 2016

dev-master

9999999-dev

Adds an editable content area to Laravel.

  Sources   Download

MIT

laravel blade editable contentarea

15/11 2016

1.0.0

1.0.0.0

Adds an editable content area to Laravel.

  Sources   Download

MIT

laravel blade editable contentarea