Questions tagged [laravel-9]

Laravel 9 is the former stable version of the open-source PHP web framework created by Taylor Otwell. It was released on February 8, 2022. Please use the [laravel] tag for general Laravel-related questions.

Laravel 9 requires the latest PHP 8 and PHPUnit 8 for testing. That’s because Laravel 9 uses the newest Symfony v6.0, which also requires PHP 8.

2126 questions
49
votes
7 answers

Error: While updating laravel 8 to 9. Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

Nothing to install, update or remove Generating optimized autoload files Class App\Helpers\Helper located in C:/wamp64/www/vuexylaravel/app\Helpers\helpers.php does not comply with psr-4 autoloading standard. Skipping. >…
Sajeed Kannoje
  • 931
  • 1
  • 5
  • 13
22
votes
5 answers

npm run dev not working with vite laravel 9

users-iMac-2:backend NEHAL$ npm run dev > dev > vite file:///Users/user/Desktop/backend/node_modules/vite/bin/vite.js:7 await import('source-map-support').then((r) => r.default.install()) ^^^^^ SyntaxError: Unexpected reserved word at…
Nehal Ahmed Khan
  • 221
  • 1
  • 2
  • 4
18
votes
16 answers

Vite manifest not found

I Working on project that working with laravel 9 and Vite with laravel-vite, In Dev environment all thing working fine, but in production cPanel server I has this issue Vite manifest not found at:…
sos5020
  • 379
  • 1
  • 3
  • 10
13
votes
3 answers

Illuminate\Routing\UrlGenerator::__construct(): Argument #2 ($request) must be of type Illuminate\Http\Request, null given

No command is working, I also tried to update Composer, but the case is the same. I found a guide that said to ignore the url() and asset() method, but it did not solve the issue. Illuminate\Routing\UrlGenerator::__construct(): Argument #2…
12
votes
3 answers

Laravel 9 app (upgraded from 8) lang directory not working as expected

I have upgraded my Laravel 8 application to version 9, and according to the docs: upgrade guide, the resources/lang directory is now located in the root project directory (lang). I've moved the lang directory to the root directory of my project, but…
Marcelo The Mage Coder
  • 1,944
  • 2
  • 11
  • 29
11
votes
1 answer

Laravel 9 - Show middleware in artisan route:list

How to display/show middleware used in Laravel routing? php artisan route:list
keatflame
  • 531
  • 4
  • 7
9
votes
4 answers

Laravel 9 - CORS is not working (Access to XMLHttpRequest has been blocked by CORS policy)

I am trying to build a separated frontend web application using Vuejs and fetching data from Laravel 9 API that I have built, when I try to access the data from the frontend that is the response in the browser console: Access to XMLHttpRequest at…
Amr Ragab
  • 329
  • 1
  • 2
  • 14
7
votes
0 answers

Laravel 9 and 10 is using x15 ram than previous version (probably due to SANCTUM), how to opitmize?

I have 3 Laravel applications, one running on Laravel 6 and 2 running on Laravel 8. They all uses Vue and JWT auth from tymondesigns, and I've plan to upgrade them all to Laravel 10. But after I successfully rebuilt one of my application to have…
SymmetricsWeb
  • 586
  • 6
  • 20
7
votes
3 answers

Module not found: Error: Can't resolve 'laravel-vite-plugin/inertia-helpers'

i already run npm install, but When i run npm run dev i got error : WARNING in ./resources/js/app.jsx 23:65-76 Critical dependency: Accessing import.meta directly is unsupported (only property access is supported) ERROR in ./resources/js/app.jsx…
6
votes
1 answer

permission denied for schema public at character 14

I am using postgresql 15 and I tried running these grant all privileges on database my_database to my_database_user; grant all privileges on all tables in schema public to my_database_user; grant all privileges on all sequences in schema public to…
Fil
  • 8,225
  • 14
  • 59
  • 85
6
votes
1 answer

Laravel 9 with Vite, mixing .css and .js files into one?

How do you deal with mixing multiple .css and .js files into one which laravel mix used to do so far. The new Laravel 9 comes with Vite.js installed and laravel mix removed. As the main function for which we mostly used laravel mix was to mix the…
MorganFreeFarm
  • 3,811
  • 8
  • 23
  • 46
6
votes
1 answer

"jQuery is not a function" when running vite in production mode

I am trying to use jQuery with laravel 9 + vite. It is working fine in dev but while built, i am getting jQuery is not a function libs.ts import * as jQuery from 'jquery'; declare global { interface Window { jQuery: typeof jQuery; …
Alaksandar Jesus Gene
  • 6,523
  • 12
  • 52
  • 83
6
votes
3 answers

How to use DataTables with Laravel Vite?

I'm having trouble adding DataTables to my new Laravel 9.21 instance. But I'm getting an error in the console. What am I missing? Uncaught TypeError: $(...).DataTable is not a function bootstrap.js import jquery from 'jquery'; window.jQuery =…
Karl Hill
  • 12,937
  • 5
  • 58
  • 95
6
votes
4 answers

Laravel 9 composer syntax error, unexpected token ")"

After in my Laravel 9 project I run composer update I faced this error message: Writing lock file Installing dependencies from lock file (including require-dev) Package operations: 0 installs, 1 update, 1 removal - Downloading…
netdjw
  • 5,419
  • 21
  • 88
  • 162
6
votes
1 answer

Laravel Nova 4 customize layout

Since Nova 4 has no blades anymore that you could publish, how could you approach customization the best in for example the head navbar next to the searchbar? I'd like to add a drop-down there but I don't know where to start or what to change? In…
NoahNxT
  • 156
  • 12
1
2 3
99 100