add slug in repo and api media
update pages table and seeder
fix page api and repo and eloquent