php artisan ErrorException ...... I can't run php artisan key:generate and php artisan


  • | 303 points

    php artisan

    ErrorException : Declaration of Illuminate\Support\Carbon::__set_state(array $array) should be compatible with Carbon\Carbon::__set_state($state)

    at C:\laragon\www\notes\vendor\laravel\framework\src\Illuminate\Support\Carbon.php: 9
    5| use JsonSerializable;
    6| use Carbon\Carbon as BaseCarbon;
    7| use Illuminate\Support\Traits\Macroable;
    8|

    9| class Carbon extends BaseCarbon implements JsonSerializable
    10| {
    11| use Macroable;
    12|
    13| /**

    Exception trace:

    1 Illuminate\Foundation\Bootstrap\HandleExceptions::handleError("Declaration of Illuminate\Support\Carbon::__set_state(array $array) should be compatible with Carbon\Carbon::__set_state($state)", "C:\laragon\www\notes\vendor\laravel\framework\src\Illuminate\Support\Carbon.php", ["C:\laragon\www\notes\vendor\composer/../laravel/framework/src/Illuminate/Support/Carbon.php"])
    C:\laragon\www\notes\vendor\laravel\framework\src\Illuminate\Support\Carbon.php : 9

    2 include("C:\laragon\www\notes\vendor\laravel\framework\src\Illuminate\Support\Carbon.php")
    C:\laragon\www\notes\vendor\composer\ClassLoader.php : 444

    Please use the argument -v to see more details.


  • administrators
    | 87338 points


Log in to reply
 

Looks like your connection to Laragon was lost, please wait while we try to reconnect.