app/Http/Controllers/LoaiSanPhamController.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()
    {
        $loaisp = loaiSanPham::all();
        return view('admin.loaiSanPham.list')->with('loaisp',$loaisp);
    }
public function index ( ) { $ loaisp = loaiSanPham :: all ( ) ; return view ( 'admin.loaiSanPham.list' ) -> with ( 'loaisp' , $ loaisp ) ; }
Display a listing of the resource.
Display a listing of the resource .
//