12345678910111213141516171819 |
- <?php
- namespace App\Http\Controllers\Api\V1;
- use App\Http\Controllers\Controller;
- use Illuminate\Support\Facades\Auth;
- class BaseController extends Controller
- {
- /**
- * 登陆用户id
- *
- * @return number|NULL
- */
- static public function auth()
- {
- return Auth::id();
- }
- }
|