-
Notifications
You must be signed in to change notification settings - Fork 168
Open
Description
We talked about making the Dropzone operation not work... in a more general way. So that people using the Demo in production don't have access to upload stuff. Pedro came up with this - sounds good to me!
<?php
namespace App\Http\Controllers\Operations;
if (! env('APP_ENV') === 'production') {
trait DropzoneOperation
{
public function dropzoneUpload()
{
return response()->json([]);
}
}
} else {
trait DropzoneOperation
{
use \Backpack\Pro\Http\Controllers\Operations\DropzoneOperation;
}
}
And then in demo we use App\Http\Controllers\Operations\DropzoneOperation
instead of the one in the package ?
If you agree I can push this change.
Cheers
Originally posted by @pxpm in #456 (comment)
Metadata
Metadata
Assignees
Type
Projects
Status
No status