• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

orchestral / canvas / 5911522794

19 Aug 2023 12:53PM UTC coverage: 93.526% (-3.2%) from 96.723%
5911522794

Pull #22

github

web-flow
Merge 025ff6bb2 into ee912994c
Pull Request #22: Workbench code generators

47 of 47 new or added lines in 5 files covered. (100.0%)

809 of 865 relevant lines covered (93.53%)

20.83 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

84.62
/src/Presets/PackageWorkbench.php
1
<?php
2

3
namespace Orchestra\Canvas\Presets;
4

5
use Orchestra\Canvas\Core\Presets\Preset;
6
use Orchestra\Workbench\Workbench;
7

8
class PackageWorkbench extends Preset
9
{
10
    /**
11
     * Preset name.
12
     */
13
    public function name(): string
14
    {
15
        return 'workbench';
1✔
16
    }
17

18
    /**
19
     * Get the path to the base working directory.
20
     */
21
    public function laravelPath(): string
22
    {
23
        return Workbench::laravelPath();
1✔
24
    }
25

26
    /**
27
     * Get the path to the source directory.
28
     */
29
    public function sourcePath(): string
30
    {
31
        return Workbench::path('app');
1✔
32
    }
33

34
    /**
35
     * Preset namespace.
36
     */
37
    public function rootNamespace(): string
38
    {
39
        return 'Workbench\App';
1✔
40
    }
41

42
    /**
43
     * Model namespace.
44
     */
45
    public function modelNamespace(): string
46
    {
47
        return 'Workbench\App\Models';
1✔
48
    }
49

50
    /**
51
     * Provider namespace.
52
     */
53
    public function providerNamespace(): string
54
    {
55
        return 'Workbench\App\Providers';
1✔
56
    }
57

58
    /**
59
     * Databases namespace.
60
     */
61
    public function factoryNamespace(): string
62
    {
63
        return 'Workbench\Database\Factories';
×
64
    }
65

66
    /**
67
     * Databases namespace.
68
     */
69
    public function seederNamespace(): string
70
    {
71
        return 'Workbench\Database\Seeders';
×
72
    }
73

74
    /**
75
     * Get the path to the resource directory.
76
     */
77
    public function resourcePath(): string
78
    {
79
        return Workbench::path('resources');
1✔
80
    }
81

82
    /**
83
     * Get the path to the factory directory.
84
     */
85
    public function factoryPath(): string
86
    {
87
        return Workbench::path('database/factories');
1✔
88
    }
89

90
    /**
91
     * Get the path to the migration directory.
92
     */
93
    public function migrationPath(): string
94
    {
95
        return Workbench::path('database/migrations');
1✔
96
    }
97

98
    /**
99
     * Get the path to the seeder directory.
100
     */
101
    public function seederPath(): string
102
    {
103
        return Workbench::path('database/seeders');
1✔
104
    }
105

106
    /**
107
     * Get custom stub path.
108
     */
109
    public function getCustomStubPath(): ?string
110
    {
111
        return null;
1✔
112
    }
113
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc