File tree Expand file tree Collapse file tree 3 files changed +19
-2
lines changed Expand file tree Collapse file tree 3 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 1
1
providers :
2
- # - Workbench\ App\Providers\WorkbenchServiceProvider
2
+ - App\Providers\WorkbenchServiceProvider
3
3
4
4
workbench :
5
5
start : ' /'
Original file line number Diff line number Diff line change
1
+ import { expect , it } from "vitest" ;
2
+ import storage from "../workbench/resources/js/routes/storage" ;
3
+
4
+ it ( "can import storage routes" , ( ) => {
5
+ expect ( storage . export ( 'file-name' ) ) . toEqual ( {
6
+ url : "/storage/file-name" ,
7
+ method : "get" ,
8
+ } ) ;
9
+ } ) ;
Original file line number Diff line number Diff line change 2
2
3
3
namespace App \Providers ;
4
4
5
+ use Illuminate \Support \Facades \Config ;
5
6
use Illuminate \Support \ServiceProvider ;
6
7
7
8
class WorkbenchServiceProvider extends ServiceProvider
@@ -11,7 +12,14 @@ class WorkbenchServiceProvider extends ServiceProvider
11
12
*/
12
13
public function register (): void
13
14
{
14
- //
15
+ Config::set ([
16
+ 'filesystems.disks.export ' => [
17
+ 'driver ' => 'local ' ,
18
+ 'root ' => database_path ('data/exports ' ),
19
+ 'serve ' => true ,
20
+ 'throw ' => false ,
21
+ ],
22
+ ]);
15
23
}
16
24
17
25
/**
You can’t perform that action at this time.
0 commit comments