https://github.com/yuges-code/laravel-contentable
Package for easily attaching contents to Laravel eloquent models ๐ ๐คฉ โ๐ป
https://github.com/yuges-code/laravel-contentable
contents laravel morphable package php yuges
Last synced: 6 months ago
JSON representation
Package for easily attaching contents to Laravel eloquent models ๐ ๐คฉ โ๐ป
- Host: GitHub
- URL: https://github.com/yuges-code/laravel-contentable
- Owner: yuges-code
- License: mit
- Created: 2025-08-05T19:46:02.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-08-26T16:36:34.000Z (6 months ago)
- Last Synced: 2025-08-26T19:23:21.322Z (6 months ago)
- Topics: contents, laravel, morphable, package, php, yuges
- Language: PHP
- Homepage: https://yuges-code.github.io/laravel-contentable/
- Size: 619 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
Build
Project
Quality
Laravel Contentable
๐ Package for easily attaching contents to Laravel eloquent models
# ๐ฟ Installation
### โ Composer
You can install the package via composer:
```
composer require yuges-code/laravel-contentable
```
### โ Publishing Config
Publishing the config file (config/contentable.php) is optional:
```
php artisan vendor:publish --provider="Yuges\Contentable\Providers\ContentableServiceProvider" --tag="contentable-configs"
```
### โ Publishing Migrations
You need to publish the migrations to create the processes and stages tables:
```
php artisan vendor:publish --provider="Yuges\Contentable\Providers\ContentableServiceProvider" --tag="contentable-migrations"
```
### โ Running Migrations
After that, you need to run migrations:
```
php artisan migrate
```
# ๐งช Running Tests
### โ PHPUnit tests
To run tests, run the following command:
```
composer test
```
# โ๏ธ License
The MIT License (MIT). Please see [License File](LICENSE) for more information.
# ๐๐ผโโ๏ธ Authors Information
Created in 2025 by:
- [Yuges-code](https://github.com/yuges-code)
- [All Contributors](../../contributors)