I’m making an ecommerce store and I want to show the latest record that has been added from the database using my product controller. Can anyone who’s an expert at laravel kindly assist? I have not idea on how to do that. Here’s the code from my controller, that’s displaying products on the landing page ..

Some of my pages is not load the css of the layout files. Both my files has the same codes as shown below but only 1 page works. @extends(‘layout’) @section(‘content’) … @endsection this is my layout codes: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>System</title> </head> <body class="hold-transition sidebar-mini layout-fixed"> … ..

I’ve made bootstrap cards that appear on two different pages. One on the landing page which I want to increase the spacing and one on the books page which I want to increase the width of the cards. Here’s the code that I’ve written and used in both pages. The only thing that I’ve changed ..

I’m trying to display a section of my about page using a full screen modal but the modal is only opening/ showing in a small section. It only opens up a little bit when I use ‘modal-dialog modal-lg’ but it doesn’t expand besides that. Can anyone help me fix this issue? <!–1–> <div class="site-section"> <div ..

Running into a problem here and been trying to find a solution for days now. I want to be able to count the number of Online users in my Laravel application. I already have build in a system for showing the online and offline user status in my application in the admin panel. However i ..

I’m doing an personnal project with a private messages functionnality. If the user sending the message is the one who is logged in, then the message appears on the right if not on the left. Currently, the most recent messages are displayed at the top of the card because for each message, I create a ..

On my project i have a table users. I want to add a new column to this table that is "has ordered before" that has the option ‘0’ or ‘1’ so i start by doing: Creating a new column in the existing table: php artisan make:migration add_orderedbefore_to_users So far so good i put the right ..

I installed bootstrap in Laravel 8 using the ff commands: npm install –save bootstrap jquery @popperjs/core cross-env Inside app/resources/js/bootstrap.js included the ff stabs: try { window.Popper = require(‘popper.js’).default; window.= window.jQuery = require(‘jquery’); require(‘bootstrap’); } catch (e) {} Then inside app/resources/scss/app.scss I included bootstrap: // bootstrap @import "~bootstrap/scss/bootstrap"; Finally, on my webpack.mix.js: mix.js("resources/js/app.js", "public/js").sass( "resources/scss/app.scss", .. Read more Right now, I would love to have a kanban board feature in my laravel app. But most tutorials on the internet explain how we make it with vue, where my application is built with laravel completely without vue. Then I thought what if we look for a kanban board application that provides integration services on .. Read more I’ve been building and running a web app on my localhost. Everything was working fine after I carried out all the test to make sure everything was working fine. I finally decided to deploy the web app on heroku, where I wanted to add extra content on the landing page through by using the admin .. Read more I’ve been making an ecommerce store with the books being displayed at the home page and the books page. I’ve made so that if any user isn’t logged in but wants to ‘proceed to the checkout’, a popup modal appears and the login form is displayed. This word correctly. The problem comes up when a .. Read more I have a form goes like this: <form method="" action=""> <label for="discountValue">Discount Value</label> <input type="text" class="form-control" id="discountValue" name="discount_value[]"> <label for="timeSpanStart">Start Date</label> <input type="text" class="form-control datepicker" id="timeSpanEnds" name="time_span_starts[]"> <label for="timeSpanEnds">End Date</label> <input type="text" class="form-control datepicker" id="timeSpanEnds" name="time_span_ends[]"> <label for="labelDiscount">Discount Label</label> <input type="text" class="form-control" id="labelDiscount" name="discount_label[]"> <button class="btn btn-success" type="submit">Submit</button> </form> As you can see I have .. Read more Hello, The following code segment is intended to ask the user if they want to be a guest author at our blogging site, however the radio toggle always returns a zero value. The MYSQL column is type tinyint(1). <!– Author? –> <div class="author" style="text-align: center; margin-bottom: 1rem;"> <h3><strong>Are you interested in earning money blogging for .. Read more I’m trying integrate a payment method with my e-commerce application using laravel. I’m also checking it with postman. Everything was performing well except the last function, which brings this error. { "requestId":"811-10899983-1" "errorCode": "400.002.02", "errorMessage": "Bad Request – Invalid BusinessShortCode" } Here my code for the controller & routes public function lipaNaMpesaPassword(){timestamp = Carbon::rawParse(‘now’)->format(‘YmdHms’); ..

<input class="form-check-input" type="checkbox" id="flexCheckChecked" wire:model="selectedPermissions" checked> but checked is working fine when I remove the wire:model I am new in livewire so maybe Im just missing something Sourc..

I used laravel data table. to show some of data from database base on laravel data table. I got a error and i dont understand from where this error come. can any pleease help me what is the issue? Please take a look of the image: https://prnt.sc/1qumgyp https://prnt.sc/1qumj6u Sourc..

I implemented DataTables for my Admin Users Dashboard, but it was working like Search, Order, Show and Entries Buttons are Displaying but not working. Like it was only displaying but not working for my data. For Example, if we search anything it was showing no data available even through the data was there, and even ..

I’ve been making a crud application in laravel. The application was working fine until I decided to change some code. The modal was showing up when I was running the code earlier and when I tested a few hours ago it was just working fine. But now when I try to click on the add ..

I’ve been making an about us page in laravel 8. The page retrievs data from mysql in order for it to display on the front-end page of the website. The about page should display an image and some text besides it. Then below it, another text and image should appear. When I try to run ..

i am using TailWind with blade template in laravel, how can i make those card like in the bootstrap, i mean every three items in the one column : @section(‘content’) <div class="flex justify-center"> <div class="w-8/12 bg-white p-6 rounded-lg mt-10 "> @forelse($products as$product) <!– Box –> <div class="md:flex md:justify-center md:space-x-8 md:px-14"> <!– box-1 –> <div ..

I am a newbie of both Laravel (PHP framework) and Bootstrap (CSS framework), but I think it was fairly easy to get some validation working and showing green input fields with green icon if success and red error messages and red input fields and red icon if validation failed. However, I have found two kind ..

I’m getting errors when trying to put variables in my Laravel code. I know you’re supposed to define the variables in the routes,but I’m getting nowhere. I’m trying to build a cms website. <!DOCTYPE html> <html> <head> <title></title> </head> <body> <ul> <div class="row align-items-center mr-5"> @foreach($abouts as$about) <div class="col-lg-6 pl-lg-5 "> <h3 class=" font-weight-bold">About ..

how can I correct add show and active class to bootstrap 5 pills?? Now I try to do something like this: <div class="nav-head"> <ul class="nav nav-pills mb-3" id="pills-tab" role="tablist"> @foreach($blocks as$item) @foreach ($item->offers->take(4) as$offer) <li class="nav-item" role="presentation"> <a class="nav-link {{ $offer->first ? ‘active’ : ”}} {{$offer->first ? ‘show’ : ”}}" data-bs-toggle="tab" href="#tabs-{{ ..
I have a div like this: And for printing data for this div, I coded this: <div class="box-magazine"> @foreach($magazines as$magazine) <div class="box-right-magazine"> <div class="box-title"> <a href="magazines/magazine/{{ $magazine->id }}"></a> <img src="{{ (! is_null($fields[‘spf_magazine_home_nano_image’])) ? IlluminateSupportFacadesStorage::url(\$fields[‘spf_magazine_home_nano_image’][‘600x’]) : ‘../../../images/festival_logo.png’ }}" class="w-100 card-img-top"> <div class="box-title-text"> Title </div> </div> <div class="box-content"> <div> Date </div> </div> </div> @endforeach <div class="box-left-magazine"> ..