appoly/laravel-pages

There is no license information available for the latest version (0.2.0) of this package.

A CMS for laravel to easily create pages for your web application

Installs: 1 055

Dependents: 0

Suggesters: 0

Security: 0

Stars: 13

Watchers: 3

Forks: 3

Open Issues: 38

Language:Vue

0.2.0 2022-04-28 07:50 UTC

This package is auto-updated.

Last update: 2024-05-04 06:57:46 UTC


README

Laravel pages is a package that makes creating custom pages for your web app easy!

Installation

composer require appoly/laravel-pages

Assets

To publish the packages assets run the following command.

php artisan vendor:publish --tag=public --force

To include the packages JS and CSS you need to add the following to the top of your layout.app file

@yield('scripts')

Config

To publish the packages config file run the following command.

php artisan vendor:publish --tag=laravel-pages-config --force

How to use

Once you've installed this package new routes will be created for your web app. To see all of your apps pages navigate to

/admin/pages

From there you can create and edit your pages. To view your pages you can navigate to

/page/{slug}

These routes are editable via the config file.

If you are removing the page part from the config, place this as the last time in your routes file:

Route::get(config('laravel_pages.view_pages_route'), '\Appoly\LaravelPages\Http\Controllers\PagesController@show')->name('laravel-pages.show');