laravel class name class code example
Example: class name laravel
// laravel helper:
$baseClass = class_basename(App\Models\User::class);
// User
// laravel helper:
$baseClass = class_basename(App\Models\User::class);
// User