lemaur / cms
cms
Fund package maintenance!
lemaur
Requires
- php: ^8.0
- artesaos/seotools: ^v0.20|^v0.22
- illuminate/contracts: ^8.0|^9.0
- lemaur/eloquent-publishing: ^1.0|^2.0
- lemaur/laravel-image-sitemap: ^1.0
- lemaur/markdown: ^0.2.0|^0.3.0
- spatie/eloquent-sortable: ^4.0
- spatie/laravel-medialibrary: ^9.0|^10.0
- spatie/laravel-package-tools: ^1.4
- spatie/laravel-schemaless-attributes: ^2.1
- spatie/laravel-sluggable: ^3.0
- spatie/laravel-tags: ^4.0
- spatie/laravel-view-models: ^1.3
Requires (Dev)
- orchestra/testbench: ^6.13|^7.0
- phpunit/phpunit: ^9.3
- roave/security-advisories: dev-latest
- spatie/laravel-ray: ^1.9
- spatie/phpunit-snapshot-assertions: ^4.2.4
- vimeo/psalm: ^4.4
README
🚧 Under development - Don't use in production!
Support Me
Hey folks,
Do you like this package? Do you find it useful and it fits well in your project?
I am glad to help you, and I would be so grateful if you considered supporting my work.
You can even choose 😃:
- You can sponsor me 😎 with a monthly subscription.
- You can buy me a coffee ☕ or a pizza 🍕 just for this package.
- You can plant trees 🌴. By using this link we will both receive 30 trees for free and the planet (and me) will thank you.
- You can "Star ⭐" this repository (it's free 😉).
Installation
You can install the package via composer:
composer require lemaur/cms
You can launch the installation:
php artisan cms:install --force
You can publish and run the migrations with:
php artisan vendor:publish --provider="Lemaur\Cms\CmsServiceProvider" --tag="cms-migrations" php artisan migrate
You can use the route with:
Open routes/web.php
and replace the content with:
Route::social('social'); Route::cms('cms', '/');
You can publish the config file with:
php artisan vendor:publish --provider="Lemaur\Cms\CmsServiceProvider" --tag="cms-config" # You also need this 3rd party configuration file. php artisan vendor:publish --provider="Spatie\MediaLibrary\MediaLibraryServiceProvider" --tag="config"
You can publish views with:
php artisan vendor:publish --provider="Lemaur\Cms\CmsServiceProvider" --tag="cms-views"
Increase security
Change values of encrypt
and secure
on your "config/session.php" file.
'encrypt' => env('SESSION_ENCRYPT_COOKIE', true), ... 'secure' => env('SESSION_SECURE_COOKIE', true),
And then add it into your .env.example file as a commented out option:
SESSION_DRIVER=file
SESSION_LIFETIME=120
#SESSION_SECURE_COOKIE=false
#SESSION_ENCRYPT_COOKIE=false
Do you need some pages to start with?
php artisan db:seed
Do you need to generate "Terms of service" and/or "Privacy Policy"?
You can find a good starting point at getterms.io.
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
Wall of Fame
- Seo Tools by Artesaos
- Common Mark by League
- Eloquent Publishing by Lemaur (it's me 😎)
- Laravel Image Sitemap by Lemaur (it's me 😎)
- Eloquent Sortable by Spatie
- Laravel Media Library by Spatie
- Laravel Schemaless Attributes by Spatie
- Laravel Sluggable by Spatie
- Laravel Tags by Spatie
- Laravel View Models by Spatie