1
你好我可以在laravel框架Laravel類驗證
namespace Illuminate\Support\Facades;
/**
* @see \Illuminate\Auth\AuthManager
* @see \Illuminate\Contracts\Auth\Factory
* @see \Illuminate\Contracts\Auth\Guard
* @see \Illuminate\Contracts\Auth\StatefulGuard
*/
class Auth extends Facade
{
/**
* Get the registered name of the component.
*
* @return string
*/
protected static function getFacadeAccessor()
{
return 'auth';
}
}
問這是什麼回報「權威性」正好返回給調用?它是文本'auth'還是一個對象?那他們爲什麼只有一種方法的原因是什麼?我很抱歉,我只是在學習oop。
預先感謝您。
它在它將作爲字符串返回的引號中。 –
並等待這個問題返回'auth'返回給調用者的是什麼? –