Laravel Ajax Crud

This article will give you example of laravel ajax crud example. you can understand a concept of laravel ajax crud example tutorial. I explained simply about laravel  jquery ajax crud…

0 Comments

Laravel pagination

Controller: function car_details(Request $req, $id){ $data = DB::table('car_comparision')->paginate(10); return view('admin/carcomparision.all_cars', ['data' => $data]); } View: <div class="container"> @foreach ($usersas$user) {{$user->name}} @endforeach </div> <div class="d-flex"> {{ $data->links() }} </div> // Directly…

0 Comments

Row count and sum in laravel

$count = DB::table('is_profile_completed')->where('userd', $userid)->count(); $sum = DB::table('is_profile_completed')->where('userd', $userid)->sum('salary'); $data = DB::table('posts')->where('post_status_for_frontend', 1)->orderBy('updated_at', 'desc')->paginate(4); {{count($data)}}  

0 Comments

Form Validator in laravel

Laravel form validation is a process where Laravel validates the data sent by the end-user to the application to ensure that the user sends the right data with the format needed…

0 Comments