Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

required make upload fail #2

Closed
aemaddin opened this issue Oct 5, 2019 · 3 comments
Closed

required make upload fail #2

aemaddin opened this issue Oct 5, 2019 · 3 comments
Labels
bug Something isn't working confirmed

Comments

@aemaddin
Copy link

aemaddin commented Oct 5, 2019

Steps to reproduce the error:-

1- setup new Laravel project
2- setup fresh nova
3- add posts table migration

public function up()
    {
        Schema::create('posts', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('image');
            $table->string('title');
            $table->text('description');
            $table->timestamps();
        });
    }

4- add Post model with

protected $fillable = [
        'title', 'description', 'image',
    ];

5- add nova Post resource

public function fields(Request $request)
    {
        return [

            ID::make()->sortable(),
            Filepond::make("image")
                ->disk("public", "posts")
                ->withoutDoka(),

            Text::make("title")
                ->rules("required"),

            Trix::make("description"),
        ];
    }

go to nova and try to upload a new image
Screen Shot 2019-10-05 at 11 00 56 PM

@milewski
Copy link
Member

milewski commented Oct 5, 2019

@aemaddin can you check your console / network logs to see what's the error you are getting?

@milewski milewski added bug Something isn't working confirmed labels Oct 6, 2019
@milewski
Copy link
Member

milewski commented Oct 6, 2019

Fixed on version v0.2.2,

and by the way, you don't need to add ->withoutDoka() if you havent configured it #enabling-doka-image-editor

@milewski milewski closed this as completed Oct 6, 2019
@aemaddin
Copy link
Author

aemaddin commented Oct 6, 2019

👍

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working confirmed
Projects
None yet
Development

No branches or pull requests

2 participants