reinvanoyen / cmf
A flexible and extendable solution for all your content management needs
Installs: 12 558
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 3
Forks: 8
Open Issues: 1
Language:JavaScript
Requires
- php: ^7.4|^8.0
- illuminate/database: ^8.0|^9.0|^10.0
- illuminate/http: ^8.0|^9.0|^10.0
- illuminate/support: ^8.0|^9.0|^10.0
- intervention/image: ^2.7
- ozdemirburak/iris: ^2.5
- spatie/laravel-tags: ^2.0|^3.0|^4.0
- spatie/temporary-directory: ^1.3
Requires (Dev)
- orchestra/testbench: ^7.11
- psalm/plugin-laravel: ^2.0
- vimeo/psalm: ^5.4
- dev-master
- 0.4.0
- 0.3.6
- 0.3.5
- 0.3.4
- 0.3.3
- 0.3.2
- 0.3.1
- 0.3.0
- 0.2.2
- 0.2.1
- 0.2.0
- 0.1.45
- 0.1.44
- 0.1.43
- 0.1.42
- 0.1.41
- 0.1.40
- 0.1.39
- 0.1.38
- 0.1.37
- 0.1.36
- 0.1.35
- 0.1.34
- 0.1.33
- 0.1.32
- 0.1.31
- 0.1.30
- 0.1.29
- 0.1.28
- 0.1.27
- 0.1.26
- 0.1.25
- 0.1.24
- 0.1.23
- 0.1.22
- 0.1.21
- 0.1.20
- 0.1.19
- 0.1.18
- 0.1.17
- 0.1.16
- 0.1.15
- 0.1.14
- 0.1.13
- 0.1.12
- 0.1.11
- 0.1.10
- 0.1.9
- 0.1.8
- 0.1.7
- 0.1.6
- 0.1.5
- 0.1.4
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1.0
- dev-feature/manual-order-sorter-desc
- dev-feature/belongs-to-filter-overhaul
This package is auto-updated.
Last update: 2024-11-12 13:54:55 UTC
README
Laravel CMF
Introduction
Laravel CMF is the flexible Content Management Framework for your next application. This software allows for rapid creation of your Content Management System while not being opinionated on how you build your Laravel application.
Installation
First, require the package using composer:
composer require reinvanoyen/cmf
This will automatically register the service provider in your config/app.php
.
'providers' => [ ... \ReinVanOyen\Cmf\CmfServiceProvider::class, ];
Next, run the cmf:install
command. This will essentially publish assets, config-files,
migrations and other needed files.
php artisan cmf:install
The install command has also published an application-specific service provider. Register it
in your config/app.php
file, like so:
'providers' => [ ... App\Providers\CmfServiceProvider::class, ];
Migrate your application.
php artisan migrate
Create a user.
php artisan cmf:user
This command will ask for a name for your user, an email address and a password.
Once the user is created, you're ready to start building!
Updating
composer update reinvanoyen/cmf
php artisan cmf:install
php artisan migrate
Build a basic CRUD module
This section assumes you have already created the needed migration and model for your database entries.
Next you'll have to create a meta file. This is the file that describes how the software should interpret your entry.
The package provides an easy-to-use command to create your meta file. If you want to make a CRUD module for your "Project" model, all you have to do is run the following:
php artisan cmf:meta Project
A new meta file for this model will be created under App/Cmf/Meta
. To change
this location, change the meta_namespace
option in your config/cmf.php
file.
Now that your meta file has been created, run the following command to generate your basic module:
php artisan cmf:module Project
A new module file will be created under App/Cmf/Modules
. To change this location,
change the modules_namespace
option in your config/cmf.php
file.
All that's left to do, is to register your module in the application-specific service provider.
Add the module to your App\Providers\CmfServiceProvider.php
, like so:
public function modules(): array { return [ new \App\Cmf\Modules\ProjectModule(), ]; }
Log in to your CMF backend panel (/admin), you should see your newly created module in the left-hand navigation panel.