Skip to content

Commit

Permalink
Improving README
Browse files Browse the repository at this point in the history
  • Loading branch information
garsaud committed May 17, 2018
1 parent 0ccc3c9 commit a6e4241
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
17 changes: 11 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Visual Composer for Backpack
[![Travis](https://img.shields.io/travis/novius/laravel-backpack-visualcomposer.svg?maxAge=1800&style=flat-square)](https://travis-ci.org/novius/laravel-backpack-visualcomposer)
[![Packagist Release](https://img.shields.io/packagist/v/novius/laravel-backpack-visualcomposer.svg?maxAge=1800&style=flat-square)](https://packagist.org/packages/novius/laravel-backpack-visualcomposer)
[![Licence](https://img.shields.io/packagist/l/novius/laravel-backpack-visualcomposer.svg?maxAge=1800&style=flat-square)](https://github.com/novius/laravel-backpack-visualcomposer#licence)

Improve the way you edit pages.

## Installation

Expand All @@ -9,12 +14,12 @@ composer require novius/laravel-backpack-visualcomposer
Then add this to `config/app.php`:

```php
Novius\Backpack\VisualComposer\VisualComposerServiceProvider::class
Novius\Backpack\VisualComposer\VisualComposerServiceProvider::class,
```

Finally, run:

```bash
```sh
php artisan vendor:publish --provider="Novius\Backpack\VisualComposer\VisualComposerServiceProvider"
php artisan migrate
```
Expand All @@ -23,13 +28,13 @@ php artisan migrate

In the model:

```php?start_inline=1
```php
use Novius\Backpack\VisualComposer\Traits\VisualComposer;
```

In the crud controller:

```php?start_inline=1
```php
public function setup($template_name = false)
{
parent::setup($template_name);
Expand Down Expand Up @@ -69,7 +74,7 @@ public function update(PageRequest $request)

In the model view:

```php?start_inline=1
```php
@foreach($page->visualcomposer_main as $row)
{!! $row->template::renderFront($row) !!}
@endforeach
Expand All @@ -79,7 +84,7 @@ In the model view:

Make a class and a folder for the views:

```bash
```sh
cd vendor/novius/laravel-backpack-visualcomposer
class=MyNewRowTemplate
touch src/app/Templates/$class.php
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"CRUD"
],
"type": "library",
"license": "proprietary",
"version": "dev",
"license": "AGPL-3.0",
"authors": [
{
"name": "Cyril Garsaud",
"email": "garsaud@novius.fr"
"name": "Novius Agency",
"email": "team-developpeurs@novius.com",
"homepage": "http://novius.com"
}
],
"require": {
Expand Down

0 comments on commit a6e4241

Please sign in to comment.