skip to Main Content

Laravel 11 – Auto discovery of event listeners inside a custom directory

Before Laravel 11, I used to bind listeners to events inside the AppProvidersEventServiceProvider provider class, for example: <?php namespace AppProviders; use AppEventsMyEvent; use AppListenersMyListener; use IlluminateFoundationSupportProvidersEventServiceProvider as ServiceProvider; use IlluminateHttpClientEventsResponseReceived; class EventServiceProvider extends ServiceProvider { /** * The event to…

VIEW QUESTION

Laravel form not sending IDs

ID input <input class="form-control" type="hidden" value="{{ Auth()->user()->id }}"> After dump "_token" => "BP0ejzEjoIjFyUonjdMFNAyoRDcYCr4k7nec5czI" "name" => "Mark" "surname" => "Johanessburg" "number" => "8281992832" "email" => "[email protected]" So I'm trying to send the user's ID through the form. But when I clicked…

VIEW QUESTION

Laravel – Can't connect to ClickHouse container

There is a running ClickHouse container clickhouse-server: image: yandex/clickhouse-server container_name: clickhouse-server ports: - '8123:8123' - '9000:9000' volumes: - ./db:/var/lib/clickhouse ulimits: nofile: 262144 There are configured connection parameters in .env CLICKHOUSE_HOST=clickhouse-server CLICKHOUSE_PORT=8123 CLICKHOUSE_DATABASE=memorial_analitucs CLICKHOUSE_USERNAME=default CLICKHOUSE_PASSWORD= CLICKHOUSE_TIMEOUT_CONNECT=5 CLICKHOUSE_TIMEOUT_QUERY=5 When performing the migration,…

VIEW QUESTION
Back To Top
Search