hacoidev / ophim-core
Ophim's core features
Installs: 6 574
Dependents: 45
Suggesters: 0
Security: 0
Stars: 91
Watchers: 6
Forks: 59
Open Issues: 12
Requires
- artesaos/seotools: ^v0.22.1
- ckfinder/ckfinder-laravel-package: v3.5.2.1
- hacoidev/crud: ^1.0.0
- hacoidev/laravel-caching-model: ^1.0.0
- hacoidev/permissionmanager: ^1.0.0
- hacoidev/settings: ^1.0.0
- laravel/framework: ^6|^7|^8
- spatie/laravel-sitemap: ^5.8
README
-
Laravel Framework 8.
-
PHP 7.3 or higher.
- Configure
php.ini
:
max_input_vars=100000
- Configure
-
MySQL 5.7 or higher.
Add-on & Themes:
-
Home: OPhimCMS.CC
-
Admin: Demo.OPhimCMS.CC/admin
-
Free Movies Data: OPhim.Movie
-
Add-on:
-
Theme: MORE...
Installation:
- CD to project root and run:
composer require hacoidev/ophim-core -W
- Configuration your database connection information in file
.env
- Then, run command:
php artisan ophim:install
- Change app\Models\User:
use Ophim\Core\Models\User as OphimUser; class User extends OphimUser { use HasApiTokens, HasFactory, Notifiable; // ... }
-
Create new user by command:
php artisan ophim:user
-
Remove this route definition in routes/web.php
Route::get('/', function () { return view('welcome'); });
- Run
php artisan optimize:clear
Update:
- CD to project root and run:
composer update hacoidev/ophim-core -W
- Then, run command:
php artisan ophim:install
- Run
php artisan optimize:clear
- Clear PHP Opcache in server (if enabled)
Note
-
Configure a production environment file
.env
APP_NAME=your_app_name
APP_ENV=production
APP_DEBUG=false
APP_URL=https://your-domain.com
-
Configure timezone
/config/app.php
'timezone' => 'Asia/Ho_Chi_Minh'
'locale' => 'vi'
-
Command CMS
php artisan ophim:menu:generate
: Generate menuphp artisan ophim:episode:change_domain
: Change episode domain play stream
Command:
- Generate menu categories & regions:
php artisan ophim:menu:generate
Reset view counter:
- Setup crontab, add this entry:
* * * * * cd /path/to/project && php artisan schedule:run >> /dev/null 2>&1