get('/user', function (Request $request) { // return $request->user(); // }); Route::group(['as' => 'api.'], function () { Route::apiResource('collections', CollectionController::class); Route::delete('/collections/{collection}', [CollectionController::class, "destroy"])->withTrashed(); Route::post('{collection_name}/{model_name?}', [FileController::class, 'store'])->name('file.store'); });