Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
KarelBrijs committed Feb 10, 2019
1 parent 9d61c8e commit c8123e5
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 2 deletions.
6 changes: 6 additions & 0 deletions docs/configuration.md
@@ -0,0 +1,6 @@
---
layout: default
title: Configuration
nav_order: 3
---
## Configuration
2 changes: 1 addition & 1 deletion docs/index.md
Expand Up @@ -3,4 +3,4 @@ layout: default
title: Home
nav_order: 1
---
### ChuckCMS Documentation
## ChuckCMS Documentation
68 changes: 67 additions & 1 deletion docs/installation.md
Expand Up @@ -3,4 +3,70 @@ layout: default
title: Installation
nav_order: 2
---
### Installation
## Installation

[![Latest Stable Version](https://poser.pugx.org/chuckbe/chuckcms/version.png)](https://packagist.org/packages/chuckbe/chuckcms) [![Total Downloads](https://poser.pugx.org/chuckbe/chuckcms/d/total.png)](https://packagist.org/packages/chuckbe/chuckcms)

---

## Table of contents
{: .no_toc .text-delta }

---

### Install with composer
```
composer require chuckbe/chuckcms
```

### Publish public assets
```
php artisan vendor:publish --tag=chuckcms-public --force
php artisan vendor:publish --tag=lfm_public //Laravel Filemanager by UniSharp
```

### Eventually publish config files
```
php artisan vendor:publish --tag=chuckcms-config --force
```

### Add Permission middleware from the Spatie package
```php
// App\Http\Kernel.php


protected $routeMiddleware = [
...
'role' => \Spatie\Permission\Middlewares\RoleMiddleware::class,
'permission' => \Spatie\Permission\Middlewares\PermissionMiddleware::class,
];
```

### migrate
```
php artisan migrate
```

### generate a new site with following command
```
php artisan chuckcms:generate-site
```

### generate all default roles and permission
```
php artisan chuckcms:generate-roles-permissions
```

### make a new super admin with following command
```
php artisan chuckcms:generate-super-admin
```

### Go to http://yourapp.local/dashboard/pages

### Create a new page

### Generate a sitemap
```
php artisan chuckcms:generate-sitemap
```

0 comments on commit c8123e5

Please sign in to comment.