david19
1 month ago
167
2
Laravel

Package (add lines on default)

Posted 1 month ago by david19

Hello team,

i will create packages. I can make views, controllers,models,routes. This works. But how i can add functions in views, which are default?

Example Package: Add this function in /app/Http/Controllers/Auth/LoginController

public function showLoginForm()
    {

        return view('vendor.mytheme.auth.login');
        
    }

For this function i can not create a extra controller, because its the default laravel auth package.

Please sign in or create an account to participate in this conversation.