### Install Laravel CMS via Composer Source: https://github.com/jeffersongoncalves/laravel-cms/blob/main/README.md Install the Laravel CMS package via Composer. ```bash composer require jeffersongoncalves/laravel-cms ``` -------------------------------- ### Publish and Run CMS Migrations Source: https://github.com/jeffersongoncalves/laravel-cms/blob/main/README.md Publish and run the package migrations. ```bash php artisan vendor:publish --tag="cms-migrations" php artisan migrate ``` -------------------------------- ### Run Tests with Composer Source: https://github.com/jeffersongoncalves/laravel-cms/blob/main/README.md Run the package test suite. ```bash composer test ``` -------------------------------- ### Generate Sitemap with Artisan Command Source: https://github.com/jeffersongoncalves/laravel-cms/blob/main/README.md Generate the sitemap using the bundled Artisan command. ```bash php artisan cms:generate-sitemap ``` -------------------------------- ### Create Page and Post Models Source: https://github.com/jeffersongoncalves/laravel-cms/blob/main/README.md Create a Page and a Post with translatable fields using the package models. ```php use JeffersonGoncalves\Cms\Models\Page; use JeffersonGoncalves\Cms\Models\Post; $page = Page::create([ 'title' => ['en' => 'About us'], 'slug' => 'about-us', 'content' => ['en' => '...'], ]); $post = Post::create([ 'title' => ['en' => 'Hello world'], 'slug' => 'hello-world', 'content' => ['en' => '...'], ]); ``` -------------------------------- ### Publish CMS Config Files Source: https://github.com/jeffersongoncalves/laravel-cms/blob/main/README.md Optionally publish the config files to override model bindings. ```bash php artisan vendor:publish --tag="cms-config" ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.