after authentication run function laravel code example Example: make auth in laravel 7 composer require laravel/ui "^2.0"