Category "laravel"

proper usage of flatpickr and laravel

Hello all I am trying to get Flatpickr working with Laravel v8. I've done the following: npm install flatpickr then I added to the resources/app.js: const flat

proper usage of flatpickr and laravel

Hello all I am trying to get Flatpickr working with Laravel v8. I've done the following: npm install flatpickr then I added to the resources/app.js: const flat

Laravel after login Two factor not working

When I log in after activating two factor, the field where I enter the verification key does not open. Login directly. What could my problem be caused by? Forti

Laravel Sanctum CSRF not authenticating

I have a problem understanding use of CSRF tokens with Laravel/Sanctum. As I see, there is no need to create Sanctum API token to authenticate user, and conside

Get field data when using Spout to read an Excel file

I'm using Spout to read an Excel file. Here is what my Excel looks like: I tried doing this with some basic code from the Spout documentation: $filePath = '/Us

Laravel api Resource Returns null field values for show() action

I am using Laravel 9 and I am going nuts trying to figure out why the show() method of the API resource returns null for all fields when using the API resource

Add field text from relationship in laravel nova in ONE form

I'm new on Laravel Nova. I'm trying to build a User form. In this moment I have these models: User, UserDetail In User I have: email, password, username. In Us

how to display a view on laravel 8 and not have a 404 NOT FOUND page?

I try to display a view but I get a 404 not found error, but my code seems correct this is the route created Route::get('talk',[\App\Http\Controllers\TalkContro

how to get name from url dynamically

How to get a part of the url? query to be made: $name = 'LeSant'; // (from url dinamic) // $event = Dias::where('name', $name)->first(); How can I get name

Error: Cannot find module 'webpack/lib/rules/DescriptionDataMatcherRulePlugin' Require stack:

I have webpack-cli installed on my laravel project. I don't know why first of all we need it to run my vue app but this is causing an error: When I run npm run

How to delete old images from public folder on update using Laravel

I want to delete older images in public folder on update: My Controller code: try { $path = public_path('profile_images'); @mkdir($path, '0777', true);

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'

Problem with fetching data from database in Laravel

I have a search form to list properties/ads through certain criteria. I am trying to fetch all properties based on offer or demand, depending on what is clicked

How can I pass the list to the component variable in Laravel?

How can I pass the list to the component variable? I tried to add elements of a list in @php tags like this , for now,, in the future, I will fetch this list fr

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>

Unable to extract Unique Identity for Emails sent from Safaricom Internal Mails ie Message ID (PHP IMAP)

I am having a challenge,I am unable to extract a unique field from emails sent directly from Safaricom Internal Mails to our Customer Service Mailbox. All other

when i run the code "php artisan migrate --seed" that's not work completely

when i run this code "php artisan migrate --seed" qppeaer one error like SQLSTATE[42S02]: Base table or view not found: 1146 Table 'naryn.modules' doesn't exist

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

How to merge components in VueJS

The Laravel framework and the laravel.mix compiler are used. There is one main component "dialog". <template> <transition-group enter-activ