kezeneilhou / cms-laravel
Laravel Content Management System
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:Blade
README
This package provides the essential framework for building a robust Content Management System (CMS) in Laravel.
Documentation
Requirements
Ensure you have the following installed:
- Laravel 8.x or higher
- PHP 7.4 or higher
Installation
To install the package, run the following command:
composer require kezeneilhou/cms-laravel
Next, publish the vendor assets:
php artisan vendor:publish
Configuration
CDN Integration
Import the Quill CDN in your layout view to enable rich text editing features:
<link href="https://cdn.quilljs.com/1.3.6/quill.snow.css" rel="stylesheet"> <script src="https://cdn.quilljs.com/1.3.6/quill.js"></script>
Routes Setup
Add the following routes to your routes/web.php
file:
use App\Http\Controllers\PostController; use App\Http\Controllers\QuillUploadController; Route::resource('post', PostController::class); Route::post('/upload-image', [QuillUploadController::class, 'uploadImage'])->name('quill.upload'); Route::post('/upload-file', [QuillUploadController::class, 'uploadFile'])->name('quill.upload.file');
Post-Installation Steps
After running the vendor publish command, ensure you update the namespaces for the published Models and Controllers. This is necessary to align with your application's structure:
- Open the published Model and Controller files.
- Update the namespaces from
Kezeneilhou\CmsLaravel\
toApp\
(or your desired namespace).
Example of Namespace Update
For instance, if you have a model published at app/Models/Post.php
, change the namespace as follows:
Before:
namespace Kezeneilhou\CmsLaravel\Models;
After:
namespace App\Models;