app/Http/Controllers/GalleryController.php
/**
     * Display all galleries.
     *
     * @return View
     */
Display all galleries.
@return View
Display all galleries . @return View
public function index(): View
    {
        return view('manage.index')->with([
            'title' => 'Galleries',
            'type' => 'galleries',
            'galleries' => Gallery::orderBy('created_at', 'asc')->paginate(7)
        ]);
    }
public function index ( ) : View { return view ( 'manage.index' ) -> with ( [ 'title' => 'Galleries' , 'type' => 'galleries' , 'galleries' => Gallery :: orderBy ( 'created_at' , 'asc' ) -> paginate ( 7 ) ] ) ; }
Display all galleries.
Display all galleries .