app/Http/Controllers/AutorizationController.php
/**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
Store a newly created resource in storage.
Store a newly created resource in storage .
public function store(RequestsAutorization $request)
    {
        $autorizationCreate = Autorization::create($request->all());
        return redirect()->route('autorization.index',[
        ])->with([
            'color' => 'alert-success',
            'message' => 'Autorizacao de fornecimento criada com sucesso, aguarde liberacao.'
        ]);
    }
public function store ( RequestsAutorization $ request ) { $ autorizationCreate = Autorization :: create ( $ request -> all ( ) ) ; return redirect ( ) -> route ( 'autorization.index' , [ ] ) -> with ( [ 'color' => 'alert-success' , 'message' => 'Autorizacao de fornecimento criada com sucesso, aguarde liberacao.' ] ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .
/*
        $autori =  new Autorization();
        $autori->fill($request->all());

        var_dump($autori->getAttributes());
        exit;*/