git clone https://github.com/faridsh69/cms2.git
cp .env.example .env
cp .env.example .env.testing
composer install
php artisan key:generate
php artisan storage:link
php artisan migrate:fresh --seed
php artisan cms:migration
http://cms.test/auth/login
username: [email protected]
password: 123456
It will check app
, config
, database
, routes
and test
folders
.\vendor\bin\ecs --fix
.\vendor\bin\phpunit
php artisan scribe:generate
php artisan passport:install
php artisan passport:client --password
you can define your model
, then migration
, routes
, controllers
, views
, policies
, test
, factory
, seeder
, table
, form
, tags
, categories
, medias
, api
, export
, import
, print
, sorting
, filter
... will be automatically generate by cms
Also Theme
with modules
and blocks
with settings
, logs
, backup
, code style configuration
are implemented.
Attribute | Use | Example values |
---|---|---|
Name | Name of column in database. Name of field in form. Used in factory. |
title, description, url, content, full_name, image, language, user_id, category, phone, address, email, password |
Type | Type of column in database. Used in factory. |
string, text, boolean, |
Database | properties of column in database. | nullable, unsigned, unique, default, none |
Rule | Rules for store and edit data. | required, nullable, image, max:190, |
Help | Help block in forms. | Title should be unique and must not be same with H1. |
Form Type | Define type of input in form. | textarea, ckeditor, entity, checkbox, |
Table | Show field in table or not. | true, false |
class Blog extends App\Services\BaseModel
{
public $columns = [
['name' => 'title'],
['name' => 'url'],
['name' => 'description'],
['name' => 'content'],
['name' => 'keywords'],
['name' => 'image'],
['name' => 'activated'],
['name' => 'google_index'],
['name' => 'canonical_url']
];
}