Category "laravel-8"

The Mix manifest does not exist - Laravel Fortify Jetstream Login/Registration Issue when deploying laravel in Hostgator shared hosting

I have been able to deploy Laravel projects successfuly in the past. For the first time I am using Laravel 8 with Jetstream and Livewire. Laravel is now using F

Laravel. Json column with cast as array are returning as a string when using JOIN in query

Laravel 8. I have two tables(models) 'employees' and 'positions'. In a model 'employees' I have a casts: protected $casts = [ 'academic_post' => 'array'

yield inside section in Laravel 8

I am trying to yield a section inside another section which is itself yielded in master.blade.php, but it does not work. master.blade.php <!DOCTYPE html>

Morph field doesn't have a default value when seeding factory relationship

I have a Recipe and Review model: class Recipe extends Model { use HasFactory; protected $guarded = ['id']; public function reviews(): MorphToMany

Laravel Blade component method not rendering in cpanel-server but work in my localhost

I have a component RemoveBook in app/View/Components/RemoveBook and the blade component in resources/views/components/sections/parts/remove-book.blade.php. all

Laravel 8 factory state afterCreating

Laravel 7 factories had method afterCreatingState() where you could define what should happen after Model with specific state was saved into database. $factory-

Target class controller does not exist - Laravel 8

Here is my controller: <?php namespace App\Http\Controllers\Api; use App\Http\Controllers\Controller; use Illuminate\Http\Request; class RegisterControlle

Customizing Laravel validation JSON message format - Laravel

I'm trying to figure out how to customize the Form requests to validate By default Laravel gives a good enough JSON format for validation errors but what if we

Anchor in Blade Template Not Working laravel

I'm trying to figure out what the problem is. So, I use laravel blade templating for navbar section and I want to add route to my anchor (A href tag). After I p

Laravel 8 - inertia-jetstream-fortify, redirect to a particular URL before login (i.e. On hit of main URL ex.-www.something.com)

I have a Single sign-in laravel application which is, say for example app-A. And my main application app-B. Now, whenever a user visits www.aap-B.com, I want th

How to update the timeout field in the attendance table for a given user_id, logdate and status using if else statement?

I have been trying to update the timeout for a given user_id, logdate, and status but my update statement is not working or may be my other if else are not corr

Using spatie(laravel-permission) in Laravel 8

When Assigning permission for a role using seeder, in permissions table it will take guard_name as "web", but when adding permission through CRUD, it will take

How to send images to Stripe Checkout Session in Laravel 8

I am having issues trying to send images using Stripe Checkout Session, I am using Laravel 8, with the Backpack Admin panel plugin. I am using Stripe's prebuilt

laravel livewire pre selected multiple checkbox get and update value

Basically, I am trying to make a multistep form like google forms and using livewire. By saving each single page data on next click. on some page, I am trying t

Symfony process run throws exception - executing on command line works

I have an issue with generating PDF files using LaTeX. The solution is created with the Laravel framework (version 8). I installed a new "Windows 2019 Datacente

Laravel Livewire pagination with bootstrap links not displaying

I'm using Laravel Livewire with bootstrap 4. I'm trying to use pagination but the links aren't displaying at the bottom of the table. I don't think the issue is

Run existing Laravel project with sail

I have an existing Laravel project which I created with the following command. curl -s https://laravel.build/example-app | bash The project was created success

Laravel get rows with created_at not older than 24 hours

I need to get all the rows on my database that meet some criteria. One those criteria is to not be older than 24 hours. I've been trying different solutions pos

Best way to shorten store method in controller

I'm trying to shorten my controller code, and I want to know the conventions to use with Laravel while validating and storing. Controller public function store(

Laravel validation only allow one value for each field

I currently have a validation for sortField but I checked this accepts /api/request?sortField='date'&sortField='time' and I want it to only accept one value