grundmanis/laracms

This package is abandoned and no longer maintained. The author suggests using the https://github.com/Grundmanis/novabits package instead.

Laravel cms

Installs: 199

Dependents: 6

Suggesters: 0

Security: 0

Stars: 7

Watchers: 3

Forks: 1

Open Issues: 0

Language:CSS

v0.3.0 2023-03-02 15:35 UTC

This package is auto-updated.

Last update: 2023-06-26 19:07:53 UTC


README

This is the Content Management System on Laravel (tested - 5.5 / 5.6), made for fun. laravel

How to use

Dashboard

Link to laracms dashboard:

yourhost.com/laracms

Test user (But run seeder first):

login: admin@laracms.com
password: secret

Publish config file which stores dashboard menu points, you can add your own too:

php artisan vendor:publish --tag=laracms

Modules

You can write your own modules for laracms, check Modules folder, or check already created by me separate module - Content Module

User module

Simple module which allows to CRUD cms users

Content module

This module allows to use translated texts directly from database in your blade files and manage them in laracms dashboard.

Click on "content" menu point or go to yourhost.com/laracms/content/, create a new content with unique slug and translated values, then in blade files, use Content::get($slug, $locale = null) or helper content($slug, $locale = null)

Pages module

This module allows to create a new pages with urls for your website.

Publish page layouts to make available to modify them

php artisan vendor:publish --tag=laracms_pages

Then resources/views/laracms/pages/layouts will appear with 2 already created layouts, You can create your own layouts in this folder and they will be automatically grabbed by laracms.

Click on "pages" menu point or go to yourhost.com/laracms/pages/, create a new page by using unique URL, choose layout and type some text. Now, You can see your page: yourhost.com/whatever_created_page_slug_here

Installation

Run

composer require grundmanis/laracms @dev

For authentication in dashboard, in config/auth.php add a new guard:

'laracms' => [
    'driver' => 'session',
    'provider' => 'laracms_users'
]

and a new provider:

'laracms_users' => [
    'driver' => 'eloquent',
    'model' => \Grundmanis\Laracms\Modules\User\Models\LaracmsUser::class
]

Finally, run configuration command:

php artisan laracms:configure