App\Http\Controllers\API\PlaylistController::index PHP Метод

index() публичный Метод

Gets all playlists by the current user.
public index ( ) : Illuminate\Http\JsonResponse
Результат Illuminate\Http\JsonResponse
    public function index()
    {
        return response()->json(Playlist::byCurrentUser()->orderBy('name')->with('songs')->get());
    }