Joined June 2018
·
Posted to
Laravel's .htaccess to remove "public" from URL
over 1 year
ago
I think this method only works if the base laravel folder is the webroot. I tried , but it didn't instead this I keep getting a 404 error from Laravel.
You can do this with reflection.
$reflect = new ReflectionClass($object);
if ($reflect->getShortName() === 'Name') {
// do this
}
You can use ReflectionClass::getShortName which get name of the class without its namespace.