PHPackages                             laradium/laradium-content - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. laradium/laradium-content

ActiveLibrary

laradium/laradium-content
=========================

v2.0.4(6y ago)2421MITPHP

Since Jan 7Pushed 6y agoCompare

[ Source](https://github.com/laradium/laradium-content)[ Packagist](https://packagist.org/packages/laradium/laradium-content)[ RSS](/packages/laradium-laradium-content/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)DependenciesVersions (22)Used By (0)

Content module for Laradium cms
===============================

[](#content-module-for-laradium-cms)

Installation
============

[](#installation)

For local use
-------------

[](#for-local-use)

1. Add this to your project repositories list in `composer.json` file

```
"repositories": [
    {
      "type": "path",
      "url": "../packages/laradium"
    },
    {
      "type": "path",
      "url": "../packages/laradium-content"
    }
  ]

```

Directory structure should look like this

```
-Project
-packages
--laradium
--laradium-content

```

For global use
--------------

[](#for-global-use)

```
"repositories": [
        {
            "type": "git",
            "url": "https://github.com/laradium/laradium.git"
        },
        {
            "type": "git",
            "url": "https://github.com/laradium/laradium-content.git"
        }
    ]

```

2. `composer require laradium/laradium-content dev-master`
3. `php artisan vendor:publish --tag=laradium-content`
4. Configure `config/laradium.php` file with your preferences
5. Add widgetConstructor field to you `laradium.php` field list

```
'widgetConstructor' => \Laradium\Laradium\Content\Base\Fields\WidgetConstructor::class,

```

Usage
=====

[](#usage)

By default there comes Main channel with widget constructor, which allows you to create sortable widget blocks for your needs.

Creating new channels
=====================

[](#creating-new-channels)

1. Run this command (*It automatically creates model for you You can pass `--t` argument to also create translations model*)

```
php artisan laradium:channel Blog

```

It will create new Channel under `App\Laradium\Channels`

It should look like this

```
