我不确定在php larvel框架中'WhereRaw'是什么.请给我一个好的,易于理解的例子.
use Illuminate\Http\Request;
/*
|-----------------------------------------------------------------------
| API Routes
|----------------------------------------------------------------------- |
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
Route::middleware('auth:api')->get('/user', function (Request $request) {
return $request->user();
Run Code Online (Sandbox Code Playgroud)
-- laravel 5.4 中这个 api.php 的用途是什么?我如何在我们的项目中使用......?---