i need to make pagination for episode like animy

Posted 1 year ago by Kareimovich

My Controller

public function index()
{
    // $animes = Anime::All();
    $animes =  Anime::paginate(1);


    return view('welcome',compact('animes'));
}


public function view(anime $anime)
{

    return view('show', compact('anime'));

}

@foreach ($anime->episode as $episode)

{{ $episode->episode_Name}}

{{$episode->anime_story}} Watch Downolad
@endforeach

 </main>

@endsection

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.