1,046
questions
0
votes
0
answers
13
views
Call to undefined function function_exists() when using a preload script
I'm trying to use a preload file to speed up my laravel application using opcache and the script I'm using is causing an odd error when I run the code.
Call to undefined function function_exists()
...
0
votes
0
answers
13
views
Queued jobs mail server issue
I have recently updated my mail server in a Laravel application hosted in AWS from Sendgrid to Mailtrap. Everything works fine if I am sending the immediate emails, however when I am trying to send ...
0
votes
1
answer
60
views
How to build vite each css files in a specific path (JS path working but not for CSS files) (Fixed!)
Updated!!!
I tried the below code and it put all my JS files into the correct folder structure but unfortunately it not working for CSS files. Can someone help me?
import { defineConfig } from "...
0
votes
1
answer
22
views
Livewire Component is not listening to events from child component
Hello I need help with events because right now, I can trigger events in same component but can't detect in parent component:
My current workflow is:
Order Now button is clicked
Calls OrderForm ...
-3
votes
2
answers
61
views
php file which contains only array. Read and store that file data in another php file [closed]
I have one file dbConfig.php which contains simple array data.
<?php
return [
'host' => 'localhost',
'database_name' => 'mitesh_practice',
'...
0
votes
0
answers
22
views
Laravel Google drive integration "masbug/flysystem-google-drive-ext": "^2.3.0" package is not working for laravel 11
Laravel Google drive integration "masbug/flysystem-google-drive-ext": "^2.3.0" package is not working for laravel 11
<?php
namespace App\Admin\Controllers;
use App\Admin\...
0
votes
0
answers
23
views
How can I keep the <form> after using wire:click?
I am using Laravel and the Filament v2 library to create a comment form for users. The comment creation process and saving to the database work well, but after submitting a comment through the form, ...
0
votes
1
answer
43
views
How to tell Laravel Dusk to use Chrome-for-testing (CFT) browser rather than the regular installed version of Chrome
On MacOs
Dusk Version -8.2.5
Laravel Version - 10.35.0
PHP Version - 8.2.13
PHPUnit Version - 10.5.2
I've been using the Chromedriver from Chrome-for-Testing with Laravel Dusk to test our app. Until ...
0
votes
1
answer
79
views
how to get data from the relationship table in laravel 10?
How do I get the data from a relationship table?
this is the tables' structure:
paradises
id - integer
title - string
travel_interest_id - integer
travel_interests
id - integer
...
0
votes
0
answers
30
views
Undefined ID with Laravel 10 with VueJS
I have a problem with viewing data based on the id of a user logged with Laravel 10 and VueJS, using session's authentication
Hello, I have a problem with my code. I'm using an session authentication ...
0
votes
0
answers
57
views
Session sometimes not saving values but when I add save() it fixes the issue
I've been struggling with finding the reason for sessions not saving randomly (and often).
In my case the session is saved on page load:
// in the controller
public function some_view(Request $request)...
0
votes
0
answers
41
views
JWTAuth queries child class db table instead of inherited User class table
I am trying to make login functionality using JWT in Laravel 10. The issue I have is that I have base User class and Artist and Client as inherited classes. The query done by JWTAuth queries the ...
0
votes
1
answer
62
views
Register different users with different properties in laravel 10?
I am new to laravel and I am trying to understand how I can register 2 types of users: Artist and Client. I deleted the users migration And I have two tables, one for artists and one for clients. ...
0
votes
1
answer
53
views
File Upload component not showing image from Laravel local driver in Filament
I'm using FilamentPHP in my Laravel project. I'm using: FILESYSTEM_DISK and FILAMENT_FILESYSTEM_DISK local for store the file in storage. I've laravel seeder which creates some records in my DB and ...
0
votes
0
answers
30
views
Laravel 10 on Hostinger: Unable to locate file in Vite manifest: resources/scss/partials/views/homepage.scss
I have a Laravel 10 website hosted on Hostinger. The website works well, I can view the welcome page, but as soon as I enter a page with
@section('styles')
@vite('resources/scss/partials/views/...
1
vote
2
answers
57
views
How to hash password in request validator?
I want to hash password and fill it in my request validator to be able to save a new employee registration. Can you help how to hash password in request validator?
Here details of my project:
Model:
&...
1
vote
1
answer
42
views
Cannot Soft Delete Related Record After Deleting Parents on Laravel 10
I'm using Laravel 10 and I'm having trobule soft delete a child record after deleting parent record. I try using booted in model to delete related record but is not working.
This is the model code:
...
0
votes
0
answers
25
views
Laravel 11.0 Session management in helper function
I made custom service functions at app/Helpers folder, called the function in controller. When pass the function, I would like to put session
I am using Laravel 11.0, And I wouldn't like to pass $...
0
votes
2
answers
62
views
Laravel Job Logs Show Incorrect Time - How to Synchronize Time Zones?
I’m facing a small issue with time zones in my Laravel application and would appreciate your help. I have a scheduled job in Laravel that updates event statuses. The job logs show the following ...
0
votes
0
answers
15
views
unable to start Vue Js 2 on Laravel 10
working with Laravel 10 and installed Vue Js 2 on the Laravel project. I have following vite.config.js file as well
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue2';
import ...
0
votes
0
answers
43
views
Nested polymorphism in Laravel using a pivot table
Below is a simplified version of my more complex problem. Changing the table structure is not an option.
I have a model called CostData:
My app can have "duplicates" of CostData that can ...
-2
votes
2
answers
75
views
variables empty when sent to API endpoint in Laravel
I'm trying to send a set of form inputs from a controller into an API endpoint but when I check the variables in the API, it all shows null value.. what is wrong with my code?
CulinaryController.php
...
0
votes
1
answer
62
views
how to pass file inputs from controller to an API controller in Laravel 10?
I'm working on a Laravel 10 project for a module called 'culinary', and I'm using RESTful API. so I have a main controller and API controller, where the main controller will make a request to the API ...
0
votes
1
answer
23
views
Laravel session timeout and releasing of locked records
I have a table called admission and in this table I have two columns to indicate record locking. locked_by that contains the user id when locked and locked_at which holds the timestamp for when the ...
0
votes
1
answer
53
views
$user->createToken('laravel')->accessToken; is returns "message": "Invalid key supplied"
In My AWS ec2 ubuntu server the login is working properly it gives user login token.
I have moved the files to serverless aws apllication with same ec2 mysql database credentials.
All other apis are ...
0
votes
0
answers
23
views
Streaming a response in Laravel?
Is it possible to keep an http connection open through Laravel such that the response can be streamed over time?
For example, when a user hits one of my API endpoints, it returns some data. But I'd ...
0
votes
0
answers
45
views
Use relationship in attribute function
I have four tables:
places with columns: id
place_details with columns: id, place _id
photos with columns: id
place_photos with columns: id, place_id, photo_id
Inside the Photo model I have:
class ...
0
votes
0
answers
48
views
How to configure laravel pint to use tabs instead of spaces when indenting
I can't find a fixer that i can configure to use tabs instead of spaces. Is there any work around for this in laravel/pint?
I've searched here in the fixers https://mlocati.github.io/php-cs-fixer-...
0
votes
0
answers
20
views
Laravel registration w/ referral code not linking in many-to-many table
I am fairly new with coding in general, but I am trying to create an app in Laravel 10 where a user can register and insert the referral code of another user, these users should be linked in a many-to-...
0
votes
2
answers
70
views
Which file related to resetting the password takes the data from the .env
I need to insert the email data that goes in the .env, directly in the code and not in the .env. However, I can't figure out which file is getting these settings.
I am using the following line of code ...
1
vote
0
answers
47
views
file clarification after a laravel upgrade
I have just had my site upgraded to Laravel 10 as part of an uplift. A file has appeared in the site directory called users.######.encrypted and is tagged as a Laravel 9 inclusion.
I've removed the ...
0
votes
2
answers
102
views
Continue Laravel scout:import where it left
I have a huge amount of data imported in my Typesense using Laravel command scout:import. And I need to stop after some time and continue where it left.
I found this: https://laracasts.com/discuss/...
0
votes
0
answers
23
views
Laravel. Log::build doesn't take into account the value from the 'tap' parameter in the passed configuration
Laravel Version
10.48.14 but the problem persists for the newest version as well
PHP Version
8.1.2
Description
When creating a logger using the build method, like this:
$logger = Log::build([
'...
0
votes
0
answers
18
views
Laravel 10 joinSub fromSub Expression is broken for cross database connections str_starts_with(): Argument #1 ($haystack) must be of type string
After upgrading to Laravel 10 my eloquent query using joinSub fromSub returns an error
error evaluating code: str_starts_with(): Argument #1 ($haystack) must be of type string, Illuminate\Database\...
0
votes
0
answers
14
views
yarn run build making build with missing functionalities
i am facing strange yarn run build behavior, when I execute yarn run dev with laravel APP_ENV=product it works fine but where i execute yarn run dev with APP_ENV=local it miss functionalities like ...
-1
votes
2
answers
43
views
php not loading mongodb extension in xampp
I am trying to connect my laravel project to a mongodb. My php version is 8.1. I downloaded the threadsafe x64 for php 8.1 from text and pasted the dll file in my ext folder in php folder of xampp. ...
0
votes
0
answers
45
views
Laravel 10 - The GET method is not supported for route ..... Supported methods: POST. Event the route user POST
I created a web with Laravel 10 then hosted it in a shared hosting. Recently I got the problem with error message The GET method is not supported for route poi/proses-upload-foto. Supported methods: ...
1
vote
1
answer
112
views
Laravel / Pusher, broadcasting/auth, Broadcast channel not working correct
I'm trying to use one Server (Backend) as source to transmit data to private channels.
Trying as Client another place/machine (mob app / , server/client), connect to private channel to be able to read ...
0
votes
0
answers
7
views
Laravel Lighthouse Package 6.42 - Custom Exception Creation and Missing RendersErrorsExtensions.php
i'm using the Laravel Lighthouse package version 6.42 to handle GraphQL operations in my Laravel application. I need to create a custom exception to handle specific error scenarios.From my research, I ...
0
votes
0
answers
29
views
Swagger: Required @OA\PathItem() not found issue with Laravel 10
I'm encountering an issue when trying to regenerate the documentation used php artisan l5-swagger:generate in my Laravel project. The command results in the following error:
Regenerating docs default
...
0
votes
1
answer
28
views
Search functionality is not working in Livewire Laravel
I don't understand why is it not working i neither see any errors nor any progress. Somebody please help what i am missing in my code. I already put @livewireStyles in head and @livewireScripts in ...
1
vote
0
answers
36
views
Assets got net::ERR_ABORTED 404 (Not Found) in route `/` on Laravel 10 with Nginx server
I'm getting many net::ERR_ABORTED 404 (Not Found) errors when trying to access my public/assets file through the route of /, but when I try another route like /home with the same page and same file, ...
0
votes
0
answers
38
views
Commented old comments value remaining at textarea after submit
Commented old comments value remaining at textarea after submit .
livewire3 ,filemant3 and laravel10 laravel blog I want to clear the text area after submmited the comment .
the text area input box is ...
0
votes
2
answers
43
views
How can I use visitor and authentication middleware for the same route?
I need a screen to be accessed both by those who have logged in and by visitors, however I wanted to use auth()->user() on this page to access the data, however if I use the auth middleware it does ...
0
votes
1
answer
140
views
Intervention\Image\Facades\Image not working on Laravel 10 and Intervention 3.7
So I am following a course from Udemy by Brad about Laravel, and while it is from almost two years ago now, many people recommended it to me because everything is still relevant. In one of his lessons,...
0
votes
2
answers
37
views
How to pass data from controller to model in laravel 10
I have been preparing one application in Laravel 10 and in my app I am not connecting with DB as it is just PHP code and based on that need to create CSV file. I have prepared my code in controller ...
0
votes
2
answers
69
views
When will a laravel model creation fail without an exception?
I am adding a store method to a controller that will create and save a new model to the database using the following code:
public function store(Request $request)
{
$validated = $request->...
0
votes
0
answers
41
views
Invalid value for param; wrong type or other syntax error: timeIntervals LinkedIn API
I want to get my metric share statistics from my page LinkedIn, the docs in here: https://learn.microsoft.com/en-us/linkedin/marketing/community-management/organizations/share-statistics?view=li-lms-...
0
votes
0
answers
16
views
How to send Mail with Dynamic Sender in Laravel 10 [duplicate]
I am stuck here I want to send mail in Laravel 10 Mail Class with dynamic email address.I am using Hostinger for hosting & mail both.
I have searched alot but the available solutions they are ...
0
votes
0
answers
51
views
Laravel 10: Target class [App\Http\Controllers\app\dashboard\dashboardController] does not exist
I tried logging in a user (email and password) to the user's dashboard page but got the error message:
Target class [App\Http\Controllers\app\dashboard\dashboardController] does not exist, after ...