-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
269 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
<?php | ||
|
||
namespace Orchestra\Canvas\Presets; | ||
|
||
use Orchestra\Canvas\Core\Presets\Preset; | ||
use Orchestra\Workbench\Workbench; | ||
|
||
class PackageWorkbench extends Preset | ||
{ | ||
/** | ||
* Preset name. | ||
*/ | ||
public function name(): string | ||
{ | ||
return 'workbench'; | ||
} | ||
|
||
/** | ||
* Get the path to the base working directory. | ||
*/ | ||
public function laravelPath(): string | ||
{ | ||
return Workbench::laravelPath(); | ||
} | ||
|
||
/** | ||
* Get the path to the source directory. | ||
*/ | ||
public function sourcePath(): string | ||
{ | ||
return Workbench::path('app'); | ||
} | ||
|
||
/** | ||
* Preset namespace. | ||
*/ | ||
public function rootNamespace(): string | ||
{ | ||
return 'Workbench\App'; | ||
} | ||
|
||
/** | ||
* Model namespace. | ||
*/ | ||
public function modelNamespace(): string | ||
{ | ||
return 'Workbench\App\Models'; | ||
} | ||
|
||
/** | ||
* Provider namespace. | ||
*/ | ||
public function providerNamespace(): string | ||
{ | ||
return 'Workbench\App\Providers'; | ||
} | ||
|
||
/** | ||
* Databases namespace. | ||
*/ | ||
public function factoryNamespace(): string | ||
{ | ||
return 'Workbench\Database\Factories'; | ||
} | ||
|
||
/** | ||
* Databases namespace. | ||
*/ | ||
public function seederNamespace(): string | ||
{ | ||
return 'Workbench\Database\Seeders'; | ||
} | ||
|
||
/** | ||
* Get the path to the resource directory. | ||
*/ | ||
public function resourcePath(): string | ||
{ | ||
return Workbench::path('resources'); | ||
} | ||
|
||
/** | ||
* Get the path to the factory directory. | ||
*/ | ||
public function factoryPath(): string | ||
{ | ||
return Workbench::path('database/factories'); | ||
} | ||
|
||
/** | ||
* Get the path to the migration directory. | ||
*/ | ||
public function migrationPath(): string | ||
{ | ||
return Workbench::path('database/migrations'); | ||
} | ||
|
||
/** | ||
* Get the path to the seeder directory. | ||
*/ | ||
public function seederPath(): string | ||
{ | ||
return Workbench::path('database/seeders'); | ||
} | ||
|
||
/** | ||
* Get custom stub path. | ||
*/ | ||
public function getCustomStubPath(): ?string | ||
{ | ||
return null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
providers: | ||
- Orchestra\Canvas\LaravelServiceProvider |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.