app/Http/Controllers/ClientController.php
/**
     * Store a newly created resource in storage.
     *
     * @param  \App\Http\Requests\StoreClientRequest  $request
     * @return \Illuminate\Http\Response
     */
Store a newly created resource in storage.
Store a newly created resource in storage .
public function store(StoreClientRequest $request)
    {
        Client::create($request->all());
        return response()->json(['success' => true]);
    }
public function store ( StoreClientRequest $ request ) { Client :: create ( $ request -> all ( ) ) ; return response ( ) -> json ( [ 'success' => true ] ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .