File: D:/HostingSpaces/SBogers10/shop.komma.nl/app/Users/UserRoutes.php
<?php
namespace App\Users;
use Illuminate\Support\Facades\Route;
use App\Users\Kms\SiteUserController as KmsSiteUserController;
use \Komma\KMS\Users\Kms\KmsUserController;
final class UserRoutes
{
public static function web()
{
Route::get('me', SiteUserController::class.'@me');
Route::patch('site_users/update/{site_user}', SiteUserController::class.'@update');
}
/**
* Routes that are used for and within the KMS
* Will be prefixed with 'kms' by the Route::group in the RouteResolver
*/
public static function kms()
{
Route::model('site_user', SiteUser::class); //Explicit route model binding
Route::resource('site_users', KmsSiteUserController::class);
//Note: these routes also work for site users, because of the siteUserController. Have a look at it :).
Route::post('kms_users/mail_set_password', KmsUserController::class.'@mailUserToSetPassword')->name('kms_users.send_set_password_email');
Route::post('kms_users/mail_reset_password', KmsUserController::class.'@mailUserToResetPassword')->name('kms_users.send_reset_password_email');
}
}