Seeding movies from TMDB has never been easier
Note this is package for laravel 5.8
Via Composer
$ composer require arsangamal/movie-seeder
Publish configuration using
php artisan vendor:publish --tag=movie-seeder.config
Set the desired options you want in {app_root}/config/movie-seeder.php
you can set the cron expression to set the schedule, table names and count of movies to import.
in the config/movie-seeder.php
set the cron expression that the scheduler will follow
Add the following lines to app/Console/Kernel.php
// get cron expression from config
$expression = config('movie-seeder.configurable_interval_timer');
// register commands to run on schedule
$schedule->command('genre:seed')->cron($expression);
$schedule->command('movie:seed')->cron($expression);
the package defines /movies
endpoint which gets movies listing
you can pass query parameters like category_id=x
to filter movies
Please see the changelog for more information on what has changed recently.
Please see contributing.md for details and a todolist.
If you discover any security related issues, please email author email instead of using the issue tracker.
license. Please see the license file for more information.