boilerplate
boilerplate copied to clipboard
Profile image for user
Hi, could you please add the feature of profile image uploading for each user?
Thanks
@cod3rshotout You can extend myth-auth yourself: https://github.com/lonnieezell/myth-auth/blob/develop/docs/extending.md To extend dashboard you need change keys "namespace" and "controller" of $dashboard property in app/Config/Boilerplate.php to:
'namespace' => 'App\Controllers',
'controller' => 'YourController::index',
Then create your controller: app/Controllers/YourController.php
<?php
namespace App\Controllers;
use agungsugiarto\boilerplate\Controllers\BaseController;
class YourController extends BaseController
{
public function index()
{
$data = [
'title' => 'Dashboard',
];
return view('dashboard', $data);
}
}