Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Profile image for user #88

Open
cod3rshotout opened this issue Apr 12, 2021 · 1 comment
Open

Profile image for user #88

cod3rshotout opened this issue Apr 12, 2021 · 1 comment

Comments

@cod3rshotout
Copy link

Hi, could you please add the feature of profile image uploading for each user?

Thanks

@b3wii
Copy link

b3wii commented Nov 30, 2021

@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);
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants