File tree Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 21
21
*/
22
22
class WorkflowModelStatus extends Model
23
23
{
24
- use SoftDeletes;
25
-
26
24
/** @use BelongsToWorkflow<WorkflowModelStatus> */
27
25
use BelongsToWorkflow;
28
26
27
+ use SoftDeletes;
28
+
29
29
protected $ with = ['status ' ];
30
30
31
31
protected $ guarded = ['id ' ];
Original file line number Diff line number Diff line change 26
26
*/
27
27
class WorkflowTransition extends Model
28
28
{
29
- use SoftDeletes;
30
-
31
29
/** @use BelongsToWorkflow<WorkflowTransition> */
32
30
use BelongsToWorkflow;
33
31
34
32
use HasPermissions;
35
33
34
+ use SoftDeletes;
35
+
36
36
public string $ guard_name = 'web ' ;
37
37
38
38
protected $ table = 'workflows_transitions ' ;
Original file line number Diff line number Diff line change 9
9
use Illuminate \Foundation \Auth \Access \Authorizable ;
10
10
use Spatie \Permission \Traits \HasRoles ;
11
11
12
- class User extends Model implements AuthorizableContract, AuthenticatableContract
12
+ class User extends Model implements AuthenticatableContract, AuthorizableContract
13
13
{
14
- use Authorizable;
15
14
use Authenticatable;
15
+ use Authorizable;
16
16
use HasRoles;
17
17
18
18
protected $ fillable = ['email ' ];
Original file line number Diff line number Diff line change @@ -19,10 +19,10 @@ protected function setUp(): void
19
19
{
20
20
parent ::setUp ();
21
21
Factory::guessFactoryNamesUsing (
22
- fn (string $ modelName ) => 'Squarebit \\Workflows \\Database \\Factories \\' . class_basename ($ modelName ) . 'Factory '
22
+ fn (string $ modelName ) => 'Squarebit \\Workflows \\Database \\Factories \\' . class_basename ($ modelName ). 'Factory '
23
23
);
24
24
25
- $ migration = include __DIR__ . '/../database/migrations/create_workflow_tables.php.stub ' ;
25
+ $ migration = include __DIR__ . '/../database/migrations/create_workflow_tables.php.stub ' ;
26
26
$ migration ->up ();
27
27
28
28
$ this ->
actingAs (UserFactory::
new ()->
create ([
'email ' =>
'[email protected] ' ]));
@@ -66,12 +66,12 @@ public function getEnvironmentSetUp($app): void
66
66
67
67
protected function defineDatabaseMigrations (): void
68
68
{
69
- $ from = __DIR__ . '/../vendor/spatie/laravel-permission/database/migrations/create_permission_tables.php.stub ' ;
70
- $ to = __DIR__ . '/Support/2000_01_01_000000_create_permission_tables.php ' ;
69
+ $ from = __DIR__ . '/../vendor/spatie/laravel-permission/database/migrations/create_permission_tables.php.stub ' ;
70
+ $ to = __DIR__ . '/Support/2000_01_01_000000_create_permission_tables.php ' ;
71
71
File::copy ($ from , $ to );
72
72
73
- $ this ->loadMigrationsFrom (__DIR__ . '/Support ' );
74
- $ this ->loadMigrationsFrom (__DIR__ . '/../database/migrations ' );
73
+ $ this ->loadMigrationsFrom (__DIR__ . '/Support ' );
74
+ $ this ->loadMigrationsFrom (__DIR__ . '/../database/migrations ' );
75
75
$ this ->loadLaravelMigrations ();
76
76
}
77
77
}
You can’t perform that action at this time.
0 commit comments