for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Microboard\Http\Controllers;
use App\User;
use Microboard\DataTables\UserDataTable;
use Microboard\Http\Requests\User\StoreFormRequest;
use Microboard\Http\Requests\User\UpdateFormRequest;
class UserController extends ResourceController
{
protected array $indexWidgets = [
'\Microboard\Widgets\UsersInThisMonth' => [
'size' => 'col-md-6'
],
'\Microboard\Widgets\PopularRole' => [
]
];
/**
* @param UpdateFormRequest $request
* @param User $model
* @return mixed|void
*/
protected function created($request, $model)
addMediaTo($model, 'avatar');
}
protected function updated($request, $model)
* @return string
protected function getStoreFormRequest(): string
return StoreFormRequest::class;
protected function getUpdateFormRequest(): string
return UpdateFormRequest::class;
protected function getDatatable(): string
return UserDataTable::class;