Questions tagged [illuminate]

28 questions
4
votes
1 answer

PHP Mess Detector avoid using static access

i use PHP Mess Detector on my Laravel controller invokable class and i got message like this Avoid using static access to class 'Illuminate\Support\Facades\Cache' in method '__invoke' Can anyone explain it why i must avoid using static access on…
3
votes
2 answers

Illuminate\Contracts\Filesystem\Factory is not instantiable

I try to use the stand alone components of laravel. In this case I try to use illuminate/http. It works fine except the file save after upload is throwing an exception. ( ! ) Fatal error: Uncaught…
lin
  • 17,956
  • 4
  • 59
  • 83
2
votes
0 answers

Uncaught Error: Class "Illumninate\Support\Collection" not found

I'm working on a php project and need to use the Collection namespace from Illuminate. I have Laravel installed on my computer. However, when I try and create a new collection with: use Illuminate\Support\Collection; $collection = new…
Evan Rohde
  • 29
  • 3
2
votes
1 answer

When updating laravel I get Only one of these can be installed: illuminate/view, laravel/framework. laravel/framework replaces illuminate/view

I am trying to update Larvel to v7.0 using composer update, but I'm getting that Laravel and immulinate view cannot co-exist. I've tried various version combinations, yet get the same error. How do I handle this? I'm running on CentOS 8, with PHP…
DavidN
  • 97
  • 1
  • 8
2
votes
1 answer

Your requirements could not be resolved to an installable set of packages. - Laravel Lumen Mail

I seem to be a little stumped with an issue that I'm having with installing mail into my Laravel lumen project composer require illuminate/mail Using version ^7.8 for illuminate/mail ./composer.json has been updated Gathering patches from patch…
Bob Hiller
  • 69
  • 9
1
vote
0 answers

Illuminate\Foundation\Auth\User returning keyType: int

I am using the following trait to generate UUID's for my user model. I have setup a listener to the following event: Illuminate\Auth\Events\Login. This works when you just normally sign-in to the app (using Laravel Breeze). But when I manually do…
Liam Seys
  • 31
  • 1
0
votes
0 answers

Class "Illuminate\Foundation\Auth\URL" not found

URL does not exist in /vendor/laravel/framework/src/Illuminate/Foundation/Auth .composer update did not fix it. error in App  \  Http  \  Middleware  \  RedirectIfAuthenticated use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use…
0
votes
0 answers

Why is Laravel Illuminate AuthenticationException not a HttpException?

I'm using prepareJsonResponse() from Illuminate\Foundation\Exceptions\Handler to handle exceptions, and I'm calling it from my App\Exceptions\Handler.php:render(). return $this->prepareJsonResponse($request, $e); As you can see in the link below,…
0
votes
0 answers

Http::post() seems to randomly send GET requests instead of POST in Laravel

I am trying to send an external post request in Laravel 9 using the official HTTP Client, and have run into a problem I cannot figure out. I've been testing the function several times, and based on what I see in the logs in Laravel Telescope, it…
0
votes
0 answers

Laravel/Illuminate encryption length checksum?

I use the following source to encrypt and decrypt a string in Laravel: $newEncrypter = new \Illuminate\Encryption\Encrypter( '098f6bcd4621d373cade4e832627b4f6', 'aes-256-cbc' ); $encrypted = $newEncrypter->encrypt('testvalue'); …
fillibuster
  • 698
  • 4
  • 16
  • 33
0
votes
1 answer

difference between 2 dates - illuminate manager laravel

I make a tv program schedule and I need to sort dates that are more than 600 seconds apart But it don't work ;( Anyone know how to do it? Many thanks in advance to those who will help me. $dateMin = Carbon::now('Europe/Paris') ->endOfDay() …
valgreg
  • 18
  • 2
0
votes
1 answer

Cannot catch QueryException in Laravel

I'm trying to catch a QueryException error in a try/catch block. I'm running a migrate:fresh command from the terminal and setting some config values. I want to rule out some exceptions and catch this error if it appears. I tried everything but…
0
votes
0 answers

Restore an Illuminate Session

I need to handle some URL redirect for a payment page. My application uses Illuminate Session and it automatically store the user session. How can I manually restore a specific session from an anonymous session? Maybe from a session-id passed by…
Tobia
  • 9,165
  • 28
  • 114
  • 219
0
votes
1 answer

For 404 on illuminate/routing outside framework

$dispatcher = new Illuminate\Events\Dispatcher; $router = new Illuminate\Routing\Router($dispatcher); $router->get( '/', [ HomeController::class, 'index' ] ); $request = Illuminate\Http\Request::createFromGlobals(); $response =…
黃梓榆
  • 45
  • 5
0
votes
3 answers

how to use laravel Route system in another php projects?

i am creating a php project for myself and it is not on laravel, i install illuminate/database package on my project for using elequent and its work perfectly. now i want to use laravel routing system in my project but can not find any Instructions…
1
2