Freelancing Proposal
Hi, I’ve carefully reviewed your project requirement – it seems you’re facing two specific issues: One value is not being sent to the API. Another value is not showing…
Hi, I’ve carefully reviewed your project requirement – it seems you’re facing two specific issues: One value is not being sent to the API. Another value is not showing…
A. First way https://drive.google.com/file/d/1CAvtTfTKNDO9zlu2XVzRUAIoZFwmpFzK/view?usp=sharing
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…
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.carousel.min.css"> <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.theme.default.min.css"> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/owl.carousel.js"></script> <!-- Demos --> <div class="owl-carousel owl-theme"> <div class="item"> <h4>1</h4> </div> <div class="item"> <h4>2</h4> </div> <div class="item"> <h4>3</h4> </div>…
In this snippet, we’re using Laravel Eloquent to fetch users from their table and ordering them in descending order by their names thanks to the orderBy() method. $data = DB::table('posts')->where('post_status_for_frontend', 1)->orderBy('updated_at', 'desc')->paginate(4);
A. Fetch Posts : Controller: public function posts(){ $categoriesdata=Category::orderBy('id','desc')->get(); if(isset($_GET['search'])){ $search=$_GET['search']; $postsdata= DB::table('posts') ->leftjoin('categories', 'categories.id', '=', 'posts.category') ->select('posts.*', 'categories.id as categories_id', 'categories.name as categories_name') ->where('posts.title', 'LIKE', '%' . $search .…