mardi 26 mai 2020

Ajax & Laravel update value from 0 -> 1

    public function getDataTables()
    {
            $datataba = DB::table('contacts')->where('called', 0)->select(['contacts.id', 'contacts.email', 'contacts.name', 'contacts.kontaktm', 'contacts.phone', 'contacts.call', 'contactforms.created_at']);
            return Datatables::of($datataba)
                ->addColumn('action', function($datataba){
                    return '<a href="#"> Set as marked</a>';
                })
                ->make(true);
    }

I want that if someone clicks on the button the value instantly changes from 0 (default value) to 1 in "call"

How can I do it?



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3d3uRpS
via IFTTT

Aucun commentaire:

Enregistrer un commentaire