Laravel 5.8 Ajax Crud Tutorial - Insert or Add Data
HTML-код
- Опубликовано: 6 апр 2019
- Learn How to insert or Add data into MySQL database in Laravel 5.8 using Ajax and Bootstrap modal with file upload. How to Insert Data in MySQL table using Ajax in Laravel 5.8. How to insert data in Laravel 5.8 using model. How to insert data in Laravel 5.8 using Ajax. How to make Ajax Crud Application in Laravel 5.8 framework.
For Source code - www.webslesson.info/2019/04/l...
Thanks alot, really good and help me
Nice video..You explained it very well.
Great
what if the image is on different table is it possible to innerjoin during the insert query ?
Nice. ... kindly do a advance blog using Laravel + ajax thanks
what if i have a foreign key on a table..and instead of showing the id..i want to show the name of the data? for example category_id which is a foreign key to my item table?
second, new added data is shown after reloading the page.. if we had to reload the page then why would we use ajax?
Nice...but I have a problem in updating the image in Laravel using ajax. My data is updating but the image is not...please help...
Sir, as i ran the php artisan migrate command i got this error in my console Illuminate\Database\QueryException violation: 1071 Specified key was too alter table `users` add unique `users at C:\xampp\htdocs\laravel-apps\data illuminate\Database\Connection.php:664 . How do i fix this error?
Thank you
url:"/ajax-crud/"+id+"/edit", that route send error..
Route [ajax-crud] not defined error...
Have named my controller as AjaxCrudController..
And my route as Route::resource('ajax', 'Ajaxcrudcontroller');..
Please help
hello webslesson, i am really impressed by your channel can you please tell me why it is user_table-Ajax error
I also encountered this type of error and i used the solution below:
first, you should look if the number of table headers are the same with the number of columns you want to add(the action header is included at the count)
If the above condition is already fulfilled and the error still persists, you should look if the DB table name is right(you should change "AjaxCrud::" to db table name that you are using)
my success message is not showing although i did the same thing
"return response()->json(['errors'] => $error->errors()-all())" @12.50 gives syntax error, unexpected '=>' (T_DOUBLE_ARROW), expecting ')'
"return response()->json(['errors'] => $error->errors()->all())" you missed ->
Make a search bar in php video
data is not inserting in db. means add button didn't respond anything .
how did you fix it, sir? i have the same problem as you
instead using use it will work
$('#create_record').click(function() {
$('#formModal').modal('show');
}); this is only for popuping the modal, We need to write some code to trigger the submit button also Hence add the code given bellow, That will work.
$('#create_record').click(function() {
$('#action_button').val("Add");
$('#action').val("Add");
$('#formModal').modal('show');
});
vageeshan vageesh
$('#create_record').click(function() {
$('#formModal').modal('show');
}); this is only for popuping the modal, We need to write some code to trigger the submit button also Hence add the code given bellow, That will work.
$('#create_record').click(function() {
$('#action_button').val("Add");
$('#action').val("Add");
$('#formModal').modal('show');
});
same system raw php please
please make a video for live streaming in php
hi can you help me
table id=user_table - Ajax error how to fix this thanks
@@uraamasif4613 may code is like that .....but thanks for the replay
table id=user_table - Ajax error how to fix this thanks
same error also showing in my project
can you fix it ?
i have the same error ,, an i can not solve it ?
check your appachi/Tomcat and Mysql server in running or not? You must need active serverconnection + mysql connection.
Audio sucksssssss
Hh true