app/Http/Controllers/PartController.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()
    {
        $allParts = Parts::all();
        return view('parts.parts-index', [
            'allParts' => $allParts
        ]);
    }
public function index ( ) { $ allParts = Parts :: all ( ) ; return view ( 'parts.parts-index' , [ 'allParts' => $ allParts ] ) ; }
Display a listing of the resource.
Display a listing of the resource .