Download the PHP package nickdekruijk/pages without Composer
On this page you can find all versions of the php package nickdekruijk/pages. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nickdekruijk/pages
More information about nickdekruijk/pages
Files in nickdekruijk/pages
Package pages
Short Description A Laravel 5.5+ Page model, migration and controller.
License MIT
Homepage http://www.nickdekruijk.nl
Informations about the package pages
Pages
A Laravel 6 Page model, migration and controller. It can be used as a foundation for a website. A basic view with navigation and a footer is also included.
Installation
After a clean Laravel 6.x installation and configuring your database install the package with:
composer require --dev nickdekruijk/pages
Depending on your project you may need some or all of these packages too (remove what you don't need):
composer require nickdekruijk/admin nickdekruijk/settings nickdekruijk/minify doctrine/dbal laravel/helpers arcanedev/laravel-lang
Then run the following command to create a Page model, PageController, migration and media folder. Add -h
to see more options on how to change the default names.
php artisan pages:install
Review the new database/migrations/yyyy_mm_dd_hhmmss_create_pages_table.php
migration file and adapt to your needs, then run the migration to create the pages table with:
php artisan migrate
Create admin user
Create a user with admin privileges using:
php artisan admin:user [email protected]
Add Routes
Add Route::get('{any}', 'PageController@route')->where('any', '(.*)');
to your routes/web.php
file.
Dummy data
You can add some sample pages by running php artisan db:seed --class=NickDeKruijk\\Pages\\PageSeeder
License
Admin is open-sourced software licensed under the MIT license.