Button onclick Number in DB +1 Laravel

Button onclick Number in DB +1 Laravel

I wanna know if its possible.

I wanna know if its possible.

If I have a database with a table and there is an entry with an int parameter who is 0.

In my view i can see the number is : 0

and then i wanna have a button and onclick it should be + 1 in my database and it should show me this number per ajax.

Is this possible so can Laravel work with ajax and js?

I wanna do it like this:

Controller:

function ($count) {

$number= DB::('number')->first; if (isset($count)) { $count = $number + 1; } else { $count = $number; }

and view:

a form with a button with the function count?

i am new so it is only me thinking about something

but it is possible and am i on the right way?

Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

How to Create Ajax Autocomplete Search from Database in Laravel 6

In this post, you'll learn how to create jquery ajax autocomplete search textbox from database in Laravel 6 using typeahead

Laravel 5.8 Ajax CRUD tutorial using Datatable JS

In this tutorial, i want to share with you create jquery ajax crud operations application using datatable js, modals in laravel 5.8. we will create insert update delete records with modal and pagination in laravel 5.8.

Laravel 5.8 Tutorial - Datatables Dropdown Filter Server-side using Ajax

In this post, we will learn how to Search or Filter Laravel Datatables data using Ajax jQuery with Individual column searching. Here you can find a complete process of Individual column searching with server side process in Laravel data tables using yajra from scratch.