kimtrien / ophim-core

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Server Requirements:

  • Laravel Framework 8.

  • PHP 7.3 or higher.

    • Configure php.ini:
    max_input_vars=100000
    
  • MySQL 5.7 or higher.

Add-on & Themes:

Installation:

  1. CD to project root and run: composer require hacoidev/ophim-core -W
  2. Then, run command: php artisan ophim:install
  3. Change app\Models\User:
use Ophim\Core\Models\User as OphimUser;

class User extends OphimUser {
    use HasApiTokens, HasFactory, Notifiable;
    // ...
}
  1. Create new user by command: php artisan ophim:user

  2. Remove this route definition in routes/web.php

Route::get('/', function () {
    return view('welcome');
});
  1. Run php artisan optimize:clear

Update:

  1. CD to project root and run: composer update hacoidev/ophim-core -W
  2. Then, run command: php artisan ophim:install
  3. Run php artisan optimize:clear

Note

  • Configure a production environment file .env
    • APP_NAME=your_app_name
    • APP_ENV=production
    • APP_URL=https://your-domain.com
  • Configure timezone /config/app.php
    • 'timezone' => 'Asia/Ho_Chi_Minh'

Reset view counter:

  • Setup crontab, add this entry:
* * * * * cd /path/to/project && php artisan schedule:run >> /dev/null 2>&1

About


Languages

Language:PHP 77.2%Language:Blade 22.7%Language:JavaScript 0.1%