app/Http/Controllers/SupplierController.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()
    {
        $data = Supplier::all();
        return view("supplier.index", compact("data"));
    }
public function index ( ) { $ data = Supplier :: all ( ) ; return view ( " supplier.index " , compact ( " data " ) ) ; }
Display a listing of the resource.
Display a listing of the resource .