app/Http/Controllers/SetorsController.php
/**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
Show the form for creating a new resource.
@return \Illuminate\Http\Response
Show the form for creating a new resource . @return \ Illuminate \ Http \ Response
public function create()
    {
        $setor = Setor::orderBy('nome')->get();
        return view('setores.create')->with('setor', $setor);
    }
public function create ( ) { $ setor = Setor :: orderBy ( 'nome' ) -> get ( ) ; return view ( 'setores.create' ) -> with ( 'setor' , $ setor ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .