app/Http/Controllers/PortfolioController.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()
    {
        $dataPort = Portfolio::all(); 
        return view('backoffice.portfolio.all', compact('dataPort'));
    }
public function index ( ) { $ dataPort = Portfolio :: all ( ) ; return view ( 'backoffice.portfolio.all' , compact ( 'dataPort' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .