app/Http/Controllers/AdminCoverTopController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index() {
        $photos = CoverTop::orderBy('id','DESC')->get();
        $users = CoverTop::all()->toArray();
        return view('admin.covertop.index', compact('photos','users'));
    }
public function index ( ) { $ photos = CoverTop :: orderBy ( 'id' , 'DESC' ) -> get ( ) ; $ users = CoverTop :: all ( ) -> toArray ( ) ; return view ( 'admin.covertop.index' , compact ( 'photos' , 'users' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .
// $photoexists = CoverTop::where('is_active',1)->get();