leaf icon indicating copy to clipboard operation
leaf copied to clipboard

๐Ÿ The easiest way to create clean, simple but powerful web apps and APIs quickly

Results 21 leaf issues
Sort by recently updated
recently updated
newest added

**Describe the bug** The helper function _env() relies on $_ENV validation, preventing the correct use on CLI **To Reproduce** Steps to reproduce the behavior: 1. Run the application using injected...

๐Ÿ leaf3

The documentation states: https://leafphp.dev/modules/http/v/2/request.html#resource-uri ``` You can get the HTTP requestโ€™s root URI and resource URI with the request objectโ€™s getRootUri() and getResourceUri() methods: //Get root URI $rootUri = request()->getRootUri();...

If you try to disable debug mode to not show code or more details on-screen when you got an error 500, the .env `APP_DEBUG=false ` or instruction ` app()->config('debug',false) `...

**Describe the bug** At least in Leaf 3, the `assets()` function (used to get the absolute URL path for asset files) behaves differently between `leaf serve` and production (LiteSpeed Enterprise)....

**Describe the bug** Using leaf with MVC, created project using : `leaf create --mvc` Windows 11, PHP 8.1, On command line, leaf --version = v2.11.1 As per composer json: ```...

**Describe the bug** I am using leaf MVC. The app is ready and I am trying to setting this up for deploy on a cpanel server. When setting up the...

auth()->register with json value return false, but create register in db

I tried to do this `app()->resource('/posts', ['middleware' => 'auth','PostsController']); ` but I got error `TypeError: Leaf\Router::resource(): Argument #2 ($controller) must be of type string, array given`

**Describe the bug** As per documentation, have installed leaf queues. However I am unable to use config or install commands. It is not available but in documentation it was mentioned....

$login = auth()->login(['email' => $email, 'senha' => $pass]);