HelloTree CMS
Installs: 2 234
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 1
Open Issues: 3
Requires
- astrotomic/laravel-translatable: *
- doctrine/dbal: ^3.0 || ^4.0
- tinify/tinify: *
README
- Create the database and update your .env file
-
Add the below to config/auth.php:
'guards' => [ ... 'admin' => [ 'driver' => 'session', 'provider' => 'admins', ], ... ], 'providers' => [ ... 'admins' => [ 'driver' => 'eloquent', 'model' => Hellotreedigital\Cms\Models\Admin::class, ], ... ],
- Configure the filesystem in config/filesystem.php, use 'public' as default value if none
-
Run:
composer require hellotreedigital/cms
-
To create the admin:
php artisan admin:create --name=example --email=example@example.com --password=123
Publishables:
-
CMS config:
php artisan vendor:publish --tag=cms_config --force
-
CMS intouch config:
php artisan vendor:publish --tag=cms_intouch_config --force
-
CMS ripply config:
php artisan vendor:publish --tag=cms_ripply_config --force
-
CMS scratch & courage config:
php artisan vendor:publish --tag=cms_scratch_and_courage_config --force
-
CMS imaginelabs. config:
php artisan vendor:publish --tag=cms_imagine_labs_config --force
-
CMS Purple Brains config:
php artisan vendor:publish --tag=cms_purple_brains_config --force
-
CMS routes:
php artisan vendor:publish --tag=cms_routes --force
-
CMS translatables:
php artisan vendor:publish --tag=translatable --force
Http Logs Installation:
-
Add the below to protected $middleware in app/Http/Kernel.php:
\Hellotreedigital\Cms\Middlewares\HttpLogsMiddleware::class,
Preview Checking On The Website:
-
If
auth('admin')->check() && request('ht_preview_mode')
returns true, then preview mode is on, you can get the preview data fromsession('ht-preview-mode-request')
Code example:$row = auth('admin')->check() && request('ht_preview_mode') ? session('ht-preview-mode-request') : $row = Model::findOrFail($id);