laravel
Repos
82

Laravel is a web application framework with expressive, elegant syntax. We’ve already laid the foundation for your next big idea — freeing you to create without sweating the small things.

72990
22705

The Laravel Framework.

29228
9720

The Laravel documentation.

2643
3800

Minimal Laravel authentication scaffolding with Blade, Vue, or React + Tailwind.

2205
340

Events

started
Created at 4 hours ago
Created at 4 hours ago
started
Created at 4 hours ago
started
Created at 5 hours ago
started
Created at 5 hours ago
pull request opened
[9.x] Updated qeueus.md Doc

Fixed a grammatical error on line 1006.

Created at 5 hours ago
started
Created at 6 hours ago
started
Created at 6 hours ago
started
Created at 6 hours ago
pull request opened
Updated queues.m doc

I fixed a grammatical error.

Created at 6 hours ago
Created at 6 hours ago
issue comment
Wrong "pending" Jobs status when using Laravel Horizon

https://github.com/laravel/telescope/issues/1331

Created at 6 hours ago
issue comment
Job Status Pending

I found the solution.

After installing Telescope it is necessary to restart processing of the queues.

/etc/init.d/supervisor restart

Screenshot_4

Created at 6 hours ago
closed issue
Job Status Pending
  • Telescope Version: 4.14
  • Laravel Version: 10.4
  • PHP Version: 8.1
  • Database Driver & Version: MariaDB

Description:

Same issues 1111 and 1113

I use Laravel with Redis and Horizon, with service supervisor.

Queues are saved and processed correctly, but in Telescope maintains the "pending" state

I did two tests, one queue pending and one processed. View image.

Attached diagram.

Screenshot_2 Screenshot_3

Created at 6 hours ago
Created at 6 hours ago
started
Created at 6 hours ago
opened issue
Job Status Pending
  • Telescope Version: 4.14
  • Laravel Version: 10.4
  • PHP Version: 8.1
  • Database Driver & Version: MariaDB

Description:

Same issues 1111 and 1113

I use Laravel with Redis and Horizon, with service supervisor.

Queues are saved and processed correctly, but in Telescope maintains the "pending" state

I did two tests, one queue pending and one processed. View image.

Attached diagram.

Screenshot_2 Screenshot_3

Created at 6 hours ago
Created at 6 hours ago
Created at 6 hours ago
started
Created at 6 hours ago
Created at 6 hours ago
opened issue
iPhone HEIC image format

Support for iPhone HEIC Profile Photo Upload.

Created at 6 hours ago
started
Created at 7 hours ago
started
Created at 7 hours ago
opened issue
Call to a member function get() on array

The Problem

I'm building a package and just stumbled upon a broken package discovery.

The package has a ServiceProvider and should merge configuration:

$this->mergeConfigFrom($this->base_path('config/frontend.php'), 'frontend');

When trying to run composer install or e.g. php artisan optimize:clear the said error rises:

$ php artisan optimize:clear 

In ServiceProvider.php line 138:
                                            
  Call to a member function get() on array

The (possible) solution

I changed the following lines

https://github.com/laravel/framework/blob/485f22333e8c1dff5bae0fe0421c1e2e139713de/src/Illuminate/Support/ServiceProvider.php#L137-L139

to these

$orig = $config->get($key, []);
$config->set($key, array_merge(
    require $path, $orig
));

which fixed the error.

Unfortunately I'm unable to explain why this fixes the error.

Further Information

Versions

  • Php: 8.1
  • Laravel: 10.4.1

Configuration File

<?php

use Illuminate\Support\Str;

$config = array_filter($_ENV, function($key) {
    return Str::startsWith($key, 'FRONTEND_');
}, ARRAY_FILTER_USE_KEY);

return [
    'title' => env('FRONTEND_TITLE', env('APP_NAME')),
    'description' => env('FRONTEND_DESCRIPTION'),
    'company' => env('FRONTEND_COMPANY'),
    'email' => env('FRONTEND_CONTACT_EMAIL'),

    'config' => $config,
];
Created at 7 hours ago
Created at 8 hours ago
started
Created at 8 hours ago

[10.x] Update CHANGELOG.md

Created at 8 hours ago