Skip to content

Bug: Cannot access offset of type string on string #6

@gerardp

Description

@gerardp

php artisan crud:generate workhours

        Schema::create('workhours', function (Blueprint $table) {
            $table->id();
            $table->time('start');
            $table->time('end');
        });

php artisan crud:generate workhours
error: Cannot access offset of type string on string

But if i add a string field, works perfect.

        Schema::create('workhours', function (Blueprint $table) {
            $table->id();
            $table->time('start');
            $table->time('end');
            $table->string('title')->nullable();
        });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions