app/Http/Controllers/LaptopController.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()
    {
        $title = 'Merk Laptop';
        $laptops = laptop::all();
        $i = 1;
        return view('laptop.index',[
            'title' => $title,
            'laptops' => $laptops,
            'i' => $i,
        ]);
    }
public function index ( ) { $ title = 'Merk Laptop' ; $ laptops = laptop :: all ( ) ; $ i = 1 ; return view ( 'laptop.index' , [ 'title' => $ title , 'laptops' => $ laptops , 'i' => $ i , ] ) ; }
Display a listing of the resource.
Display a listing of the resource .