app/Http/Controllers/ClientController.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(Request $request)
    {
        $client = new Client;
        $client->name = $request->client_name;
        $client->surname = $request->client_surname;
        $client->description = $request->client_description;
        $client->save();
        return redirect()->route("client.index");
    }
public function store ( Request $ request ) { $ client = new Client ; $ client -> name = $ request -> client_name ; $ client -> surname = $ request -> client_surname ; $ client -> description = $ request -> client_description ; $ client -> save ( ) ; return redirect ( ) -> route ( " client.index " ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .