MovieController
extends Controller
in package
Attributes
- #[Middleware]
- ['auth:sanctum', 'ability:' . \App\Models\TokenAbility::ACCESS_API->value, 'force.json']
- #[Prefix]
- '/libraries/{library}/movies'
Table of Contents
Methods
- index() : AnonymousResourceCollection
- Get a paginated collection of movies from a specific library
- show() : MovieResource
- Get a specific movie with detailed information
- denyWithStatus() : mixed
- gateCheckExecuteJob() : mixed
- gateCheckViewDashboard() : mixed
- noContent() : mixed
Methods
index()
Get a paginated collection of movies from a specific library
public
index(Library $library) : AnonymousResourceCollection
Returns a paginated list of all movies contained within the specified video library. Movies are filtered by the library to ensure only content from the requested library is returned.
Parameters
- $library : Library
-
The video library to retrieve movies from
Tags
Attributes
- #[Get]
- '/'
- 'api.movies.index'
Return values
AnonymousResourceCollectionshow()
Get a specific movie with detailed information
public
show(Library $library, Movie $movie) : MovieResource
Retrieves a single movie from the specified library with comprehensive information including cast, crew, genres, technical details, and metadata.
Parameters
Tags
Attributes
- #[Get]
- '{movie}'
- 'api.movies.show'
Return values
MovieResourcedenyWithStatus()
protected
denyWithStatus(string $message, int $status) : mixed
Parameters
- $message : string
- $status : int
gateCheckExecuteJob()
protected
gateCheckExecuteJob() : mixed
gateCheckViewDashboard()
protected
gateCheckViewDashboard() : mixed
noContent()
protected
noContent() : mixed