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