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