Category "laravel"

Closure not setting variables as expected

For some reason, $uuid & $tags are not being set correctly. public function handle(Request $request, Closure $next) { $uuid = null; $tag

How to redirect to a blade dashboard page from Vue login Component page after successfully login in laravel JetStream?

I created a laravel 8 project using jetstream authentication. As stack I have used inertia+vue. After successful login, I need to redirect to a blade file. But

auth pages not getting css in laravel

I am beginner to laravel. I have created project. And I have run following commands to it. composer require laravel/ui --dev npm install npm run dev php artisa

How to Display Data in Yajra Datatables Laravel 7?

I want to display data in Laravel using Yajra Datatables, but the problem is that the data can't sync yet. If I do Dump and Die dd($orders), the number of dat

Clear javascript source cache laravel 5.8

I create company profile website using laravel 5.8 and vue js for make it reactive, it's not SPA(single page application) maybe we can call it hybrid, everythin

how to use whereHas in laravel

I am new to laravel, I need to create a query for the db, $query = Deal::query(); I want to use the wherehas operator. this is my code that is worked. else if

Laravel database insert with combining array and string

I should insert an array such as $attendanceList = [18354012,18354013,18354014,18354015] and $present = "FALSE" and same for all item of $attendanceList. As you

Method Illuminate\Auth\RequestGuard::logout does not exist Laravel Passport

Am using Laravel Passport to build an API, I removed the web routes and its guard accordingly How can I test user logout? This is what I have so far: Lo

One eloquent query with whereIn clause with more than 3000 elements works but another one with the same elements and format doesn't

Hello and thank you beforehand for your help. I've been hitting my head against a wall with this problem for a few days now so decided to ask here. I have two q

How to POST correctly a form that have data and files with VueJS, Axios and Laravel?

I am posting here as a beginner of VueJS and Laravel. I am stuck with a problem that I can't fix by myself after hours of search. I would like to know how corre

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