mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -04:00
* Wired up Bulk Archive / Delete / Restore button with reactivity on checkbox actions * Working on POSTing bulk actions * Working on Filtering by status * Add Action Entity * Implement Vuex for state management * Implement Vuex storage & list view bulk actions * Clean up console logs * Configure entity list views server side
29 lines
607 B
PHP
29 lines
607 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Filters\QueryFilters;
|
|
use Hashids\Hashids;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class BaseModel extends Model
|
|
{
|
|
public function __call($method, $params)
|
|
{
|
|
$entity = strtolower(class_basename($this));
|
|
|
|
if ($entity) {
|
|
$configPath = "modules.relations.$entity.$method";
|
|
|
|
if (config()->has($configPath)) {
|
|
$function = config()->get($configPath);
|
|
|
|
return call_user_func_array(array($this, $function[0]), $function[1]);
|
|
}
|
|
}
|
|
|
|
return parent::__call($method, $params);
|
|
}
|
|
|
|
}
|