app/Http/Controllers/ClientsController.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(RequestsClients $request)
    {
        $clientsCreate = Clients::create($request->all());
        return redirect()->route('clients.edit', [
            'client' => $clientsCreate->id
        ])->with([
            'color'=>'alert-success',
            'message' => 'Cliente Cadastrado com Sucesso!'
        ]);
    }
public function store ( RequestsClients $ request ) { $ clientsCreate = Clients :: create ( $ request -> all ( ) ) ; return redirect ( ) -> route ( 'clients.edit' , [ 'client' => $ clientsCreate -> id ] ) -> with ( [ 'color' => 'alert-success' , 'message' => 'Cliente Cadastrado com Sucesso!' ] ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .