@@ -240,9 +240,6 @@ return [
'image' => 'images',
'file' => 'files',
],
-
- // Image and file access protocol http or https.
- 'domain_type' => 'default',
/*
@@ -48,10 +48,14 @@ trait HasPaginator
* 是否使用 simplePaginate 方法分页.
*
* @param bool $value
+ *
+ * @return $this
*/
public function simplePaginate(bool $value = true)
{
$this->model()->simple($value);
+
+ return $this;
}
/**
@@ -19,7 +19,7 @@ class TinymceController
$disk->putFileAs($dir, $file, $newName);
- return ['location' => $disk->url(['path' => "{$dir}/$newName", 'domainType' => config('admin.upload.domain_type')])];
+ return ['location' => $disk->url("{$dir}/$newName")];
protected function generateNewName(UploadedFile $file)