Skip to main content

Questions tagged [laravel]

The Laravel framework is an open-sourced PHP web framework that allows developers to create dynamic and scalable web applications. The source code of Laravel is hosted on GitHub and released under the MIT license.

laravel
Filter by
Sorted by
Tagged with
0 votes
0 answers
3 views

how to upload directory of file in Laravel 10

I would like to know if it is possible to upload a directory containing files in the application laravel. This simply means that I choose the upload file option then I have the possibility of ...
Simon Thiombiano's user avatar
0 votes
0 answers
3 views

Laravel : Product details are no longer displayed and now nothing to migrate

I had an error "table product_tag non found" then i check my product and tag Model they are both a belongsToMany. I created a 3rd migration and ran this php artisan migrate --path=database/...
lara's user avatar
  • 19
0 votes
0 answers
9 views

Select2 not loading options on initialization

I have a select on my page and it has options in it. When I initialize the select2 the options are not loaded. <select class="form-select form-select-sm" id="select-user-1"> ...
Diogo Corigo's user avatar
-2 votes
0 answers
21 views

In PHP, how to json_decode 'MARATHI' data, which is json_encode() with 'JSON_UNESCAPED_UNICODE'? [closed]

This is the code to export in Excel in Laravel. I have already encode the data in 'field_data' like this while inserting in the database 'field_data' => json_encode($leadData['field_data'], ...
Vaibhav K. Patil's user avatar
0 votes
0 answers
16 views

Laravel migration problem with env file maybe

I just started working with Laravel and php and my supervisor just asked me to clone the Laravel repo from git and run it in my computer. the localhost/login page works, but I tried running php ...
PaulCatalin's user avatar
0 votes
0 answers
10 views

How to replace string in phpunit.xml in GitHub Actions

I'm encountering an issue with GitHub Actions regarding my job setup. I'm using the following steps in my workflow: - name: Add secrets to phpunit.xml run: | sed -i 's/{{SIASN_MODE}}/${{ secrets....
Achmad Hadi Kurnia's user avatar
0 votes
1 answer
22 views

Laravel : sorting filter brands doesn't works but error points to an other function (which works)

I am trying to display my categories and brands when I click on them (a screen if needed). Categories work, but not brands. When I click on a brand, I get the error "Call to a member function ...
lara's user avatar
  • 19
0 votes
0 answers
14 views

Laravel + Redis Cache via SSL? Now using Serverless

Reference to this question, I am trying to connect to AWS ElastiCache Redis Serverless via ECS using TLS. I'm using Laravel 11.14. Here is my settings in config/database.php. And it simply neglects ...
Ellery Leung's user avatar
-3 votes
1 answer
16 views

PHP Preg Match Regex Skip Match, Only Take Group

hi I wanna skip matches in regex which I need group as the result String https://www.youtube.com/watch?v=SNHW0MJL764&ab_channel=BeritaSatu Regex v=([A-z|0-9]+) Well, the result is like this when ...
Raden Bagus's user avatar
-1 votes
0 answers
19 views

Laravel error handling for authentication system

I want to implement the laravel build in authentication system breeze in my laravel project. But when I clicked on the login or register the css is not working and also it shows a error. Mix manifest ...
Shashi Rajput's user avatar
1 vote
0 answers
13 views

Why added ckeditor in Laravel 11 app lose itself when I start type inside of ckeditor area?

Reading https://startutorial.com/view/using-ckeditor-with-laravel-livewire article I added ckeditor in Laravel 11 app in 1 page just as on example and it works ok. But to have the editor some default ...
mstdmstd's user avatar
  • 2,897
1 vote
0 answers
31 views

What is the reason why requesting to `api/user` is unauthenticated?

I still don't get it. It's been many days. I am reading thoroughly this https://laravel.com/docs/11.x/sanctum#spa-authentication. The article states that they should be on the same top-level domain, ...
Fil's user avatar
  • 8,615
1 vote
0 answers
16 views

How to mock and test one exact method call in service and ignore all other method calls

I have a log class: class LogHelper { public static function log(string $type, string $message, array $context = []): void { Log::channel('test')->{$type}($message, $context); } ...
fico7489's user avatar
  • 8,359
0 votes
0 answers
41 views

laravel take() returns empty collection for relationship

im trying to get 4 categories with only 4 articles in laravel using this code: $categoryArticles = Category::whereHas('articles')->with(['articles' => function($q){ $q->select('id', '...
K1-Aria's user avatar
  • 1,091
0 votes
0 answers
28 views

How to get permissions of not logged user?

On laravel 11 site I when I need to get $permissions of logged user I do: \Auth::user()->permissions->pluck('id')->toArray(); But making editor of other users I try : $notCurrentUser->...
Petro Gromovo's user avatar
1 vote
0 answers
11 views

caught TypeError: Cannot read properties of undefined (reading 'profitwellSnippetBase') in paddle.js

I have intrgrated paddle billing api in Laravel , It working fine in sandbox but in live it return errors. enter image description here This is my code <script src="https://cdn.paddle.com/...
kousar Rahman's user avatar
0 votes
0 answers
14 views

Disable bot verification recaptcha on CPanel

I have a simple react native expo application on android and the backend is Laravel. Recently, I figured out that I can't log into my account and I am losing traffic. I tried to login using Postman ...
Omar's user avatar
  • 1
-1 votes
0 answers
18 views

how to solve the problem of system error while paytm integration in flutter 501

{"resultStatus":"F","resultCode":"501","resultMsg":"System Error"}}} [2024-07-03 10:32:19] production.ERROR: Result Message: System Error ...
rakesh's user avatar
  • 1
1 vote
0 answers
32 views

Can't foreach comments into my Lesson view Laravel and Livewire

This is a course platform. Courses, sections and lessons are working correctly. I have a Comments system that I saw in a tutorial, works perfect, the problem, I want that comments belongs to a ...
Juan Rincón's user avatar
0 votes
0 answers
14 views

Multiple PHP-FPM pools with Laravel site

I have a really simple Nginx config for a Laravel site. I'd like to be able to use multiple PHP-FPM pools based on the URL passed. For example testapp.net/api/... I would like to use the same Laravel ...
Lee Armstrong's user avatar
0 votes
0 answers
39 views

Show method in laravel

I'm developing an exercise platform. First, I have a list of the different technologies on which I can create exercises. Then, when I click on one of them, I need the list of available exercises. But ...
Nathan's user avatar
  • 19
0 votes
1 answer
20 views

Laravel 11.9 Flash Sessioned Data Not Passing Message

I am trying to set a custom message when a user session has timed out. I managed to setup the timeout rerouting, but I struggle to include a message to notify the user. Here's part of the code that I ...
Derrick's user avatar
  • 11
0 votes
1 answer
17 views

Laravel my sorting filter doesn't work but i have no error or no messages

//my route Route::get('catalogue/{categorie?}','App\Http\Controllers\CatalogueController@index')->name('catalogue'); //my function function index($categorie = null ) { if($categorie) ...
lara's user avatar
  • 19
-1 votes
0 answers
35 views

How to quickly upload data from the Nova Postha Api to your database(30,000 records)? [closed]

public function updateWarehouses() { $settlements = NovaPoshtaSettlement::all(); $timeout = 60; $limit = 500; foreach ($settlements as $settlement) { $...
Vlad Ptashnyk's user avatar
-1 votes
0 answers
23 views

In case of Laravel Blade file How to tag assets of a html file using PhpStorm easily at once?

I was just trying to find a shortcut for doing some manual jobs at once. I have a HTML file with below code. I want to convert it in Blade file. So I am tagging the assets files also I have changed ...
T.A. Farabi's user avatar
0 votes
0 answers
13 views

Can not to install virtual-select with npm On laravel 11 site

On laravel 11 site I try to use virtual-select installed with npm after npm install I tried do it in usual way with valid path of files in app.js: import VirtualSelect from 'virtual-select-plugin/dist/...
Petro Gromovo's user avatar
0 votes
0 answers
28 views

How do I prevent 429 Too Many Requests in Angular?

I tried using delay(50) on each API call, but I still get 429 Too Many Requests. Back-end is Laravel, what's the best way to prevent this in Angular or should this be handled by back-end Laravel? My ...
lance2k's user avatar
  • 398
0 votes
0 answers
10 views

Filament Action Modal Close

How to deal with actions that redirect to a Laravel Controller for pdf download, but modal does not close because of the redirect, how to implement something that closes modal. Forms\Components\...
notsoeasy's user avatar
0 votes
0 answers
14 views

Error: Cannot set properties of undefined (setting 'mode') vercel deployment laravel

I want to deploy using vercel through the CLI and when I run vercel build everything is safe until npm run build then not long ago it appears the error setting 'mode' I don't know where the error is ...
Roihan Adhen's user avatar
1 vote
1 answer
39 views

Laravel route model binding in laravel 11 doesn’t work for routes in a customized route file

In my laravel 11 app I created a route file named admin.php to put my admin routes there. I configured admin.php in bootstrap app.php based on laravel’s documentation this way: return Application::...
Parastesh's user avatar
0 votes
0 answers
23 views

How to Implement GlideJS in Laravel Vite

I want to implement GlideJS with Vold in Laravel Vite. GlideJS can work well when the page is reloaded, but GlideJS doesn't work when moving pages by hot reloading using Volt. Here is the code I have ...
Hilmi Hidayat's user avatar
0 votes
0 answers
32 views

Optimize Laravel command, too many sql queries

this command works, and gives expected result, only problem is its performance, since there are multiple warehouses(companies) command has to job for all, so it takes a lot of time. I am looking to ...
Edin Osmic's user avatar
2 votes
0 answers
28 views

Scheduled Messages Command Processing Issue in Laravel 11

I'm facing an issue with a Laravel console command designed to send scheduled messages, and I would appreciate any help or insights from the community. Problem Description I've implemented a command ...
Najeeb Anwari's user avatar
0 votes
1 answer
27 views

Laravel : i have this message "page not found" without any error

//my route Route::get('catalogue/{categorie?}','App\Http\Controllers\CatalogueController@index')->name('catalogue'); //my controller namespace App\Http\Controllers; use Illuminate\Http\Request; ...
lara's user avatar
  • 19
0 votes
1 answer
66 views

how to access REST API in laravel 10?

I'm working on a project using laravel 10 that uses REST API but I'm getting a 404 not found error when I tried to test the url http://localhost/api/v1/continent with GET request in Postman. this is ...
dapidmini's user avatar
  • 1,579
0 votes
0 answers
49 views

The submenus of my drop-down menu are not displayed on any browser [closed]

I develop my site in php with the Laravel framework. Below is the source code for my drop-down menu, however the submenus are not displayed on browsers. What can be the problem ? <div class="...
simplice wambe's user avatar
0 votes
1 answer
31 views

Create server locally with laravel but can not accessed

i create server locally on my PC, with laravel project and running with command php artisan serve --host 0.0.0.0 i try to access with google chrome type http://192.168.099:8000 and it can be access. ...
Dena Achmad's user avatar
0 votes
0 answers
24 views

Twilio error while accepting the incoming call

Error of @twilio_conversation…js?v=582255ec:11005 Uncaught (in promise) Error: Forbidden at Upstream2._callee$ (@twilio_conversation…v=582255ec:11005:27) at tryCatch (chunk-NHAX666J.js?v=...
Dhruvi's user avatar
  • 1
1 vote
0 answers
20 views

Class "Barryvdh\DomPDF\Facade\PDF" Not Found in Laravel 11 When Deploying live

I have a little problem with my project that I don't know how to fix it. I use a dompdf to generate pdf. everything went well in my local but after I host it this error occur: Class "Barryvdh\...
NyK's user avatar
  • 123
-2 votes
1 answer
40 views

no such table error on laravel fresh installation

i'm getting this error on a fresh Laravel installation and I don't know where the error is coming from or where it is attempting to run this query from. SQLSTATE[HY000]: General error: 1 no such ...
Thebuilder's user avatar
0 votes
0 answers
37 views

How to use multiple middlewares in laravel 11?

I'm getting "Access to XMLHttpRequest at 'http://host/endpoint' from origin 'http://host' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It ...
Jimmark Daroy's user avatar
0 votes
1 answer
32 views

Email Send using AWS SES in Laravel

I tried to send email using AWS SES SMTP and this is how I did. .env MAIL_MAILER=smtp MAIL_HOST=email-smtp.{AWS_REGION}.amazonaws.com MAIL_PORT=587 MAIL_USERNAME="${AWS_SES_USER_NAME}" ...
pig0809's user avatar
  • 75
0 votes
0 answers
20 views

Docker serve react app with nginx not working

Here is my situation. I have a working Laravel application running in docker with its front end in angular js embedded in Laravel itself. Now I am developing new front end for the application that is ...
Saani's user avatar
  • 862
-2 votes
0 answers
24 views

including stripe payment : Sending credit card numbers directly to the Stripe API is generally unsafe [closed]

Cartalyst\Stripe\Exception\InvalidRequestException Sending credit card numbers directly to the Stripe API is generally unsafe. To continue processing use Stripe.js, the Stripe mobile bindings, or ...
saab19881's user avatar
0 votes
0 answers
41 views

Class "Illuminate\Support\Facades\Schedule" not found [closed]

I wanted to schedule a task, read the documentation of laravel, suggesting to use Illuminate\Support\Facades\Schedule . console.php <?php use Illuminate\Support\Facades\Artisan; \Illuminate\...
Back Ismoil's user avatar
0 votes
0 answers
19 views

GuzzleHTTP requestAsync Custom Timeout Not Working

I create a client object with GuzzleHTTP and use the requestAsync method. I don't have any problems so far. However, I set the options timeout value to 60 in RequestAsync and experiment. However, the ...
nrkdrk's user avatar
  • 78
-3 votes
0 answers
40 views

i want to change the upload_max_filesize=50M in my laravel project deployed on ms Azure [closed]

Any one did laravel deployement on MS Azure? i need a small help. i want to change the upload_max_filesize=50M to upload large file. but i can't find it. i follow the official documentation. here is ...
Muneeb ur rehman's user avatar
0 votes
0 answers
6 views

Websocket Handshake at the same time makes server 504 bad gateway

Okay, here's the detail I have ubuntu VM with nginx as web server, here's all the app backend, laravel frontend, laravel websocket, socketio, expressJS (run on port 8015, reverse proxy to domain-ws....
Tuhan Kamu's user avatar
1 vote
0 answers
43 views

PHP-ZIP extension is missing on your server. Please install the extension

I have that error in this part of the code: ` if (!extension_loaded('zip')) { return Reply::error('<b>PHP-ZIP</b> extension is missing on your server. Please install the ...
0 votes
0 answers
31 views

Make a Laravel App that automatically publish on my page each week

I'm trying to make a Laravel task that will publish a picture each week on my page. Here's my code: public function postToFacebook($message, $imageUrl): array|string { try { $...
Juliatzin's user avatar
  • 19.3k

1
2 3 4 5
4247