Skip to content

Commit 9e3cf81

Browse files
committed
updated snapshots
1 parent 9ce2574 commit 9e3cf81

File tree

144 files changed

+5397
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+5397
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
namespace Modules\Blog\Actions\Api;
4+
5+
class MyAction
6+
{
7+
public function handle()
8+
{
9+
//
10+
}
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
namespace Modules\Blog\Actions;
4+
5+
class MyAction
6+
{
7+
public function handle()
8+
{
9+
//
10+
}
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
3+
namespace Modules\Blog\Casts\Api;
4+
5+
use Illuminate\Contracts\Database\Eloquent\CastsAttributes;
6+
use Illuminate\Database\Eloquent\Model;
7+
8+
class MyCast implements CastsAttributes
9+
{
10+
/**
11+
* Cast the given value.
12+
*
13+
* @param array<string, mixed> $attributes
14+
*/
15+
public function get(Model $model, string $key, mixed $value, array $attributes): mixed
16+
{
17+
return $value;
18+
}
19+
20+
/**
21+
* Prepare the given value for storage.
22+
*
23+
* @param array<string, mixed> $attributes
24+
*/
25+
public function set(Model $model, string $key, mixed $value, array $attributes): mixed
26+
{
27+
return $value;
28+
}
29+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
3+
namespace Modules\Blog\Casts;
4+
5+
use Illuminate\Contracts\Database\Eloquent\CastsAttributes;
6+
use Illuminate\Database\Eloquent\Model;
7+
8+
class MyCast implements CastsAttributes
9+
{
10+
/**
11+
* Cast the given value.
12+
*
13+
* @param array<string, mixed> $attributes
14+
*/
15+
public function get(Model $model, string $key, mixed $value, array $attributes): mixed
16+
{
17+
return $value;
18+
}
19+
20+
/**
21+
* Prepare the given value for storage.
22+
*
23+
* @param array<string, mixed> $attributes
24+
*/
25+
public function set(Model $model, string $key, mixed $value, array $attributes): mixed
26+
{
27+
return $value;
28+
}
29+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
3+
namespace Modules\Blog\SuperChannel;
4+
5+
class WelcomeChannel
6+
{
7+
8+
/**
9+
* Create a new channel instance.
10+
*/
11+
public function __construct()
12+
{
13+
//
14+
}
15+
16+
/**
17+
* Authenticate the user's access to the channel.
18+
*/
19+
public function join(Operator $user): array|bool
20+
{
21+
//
22+
}
23+
24+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
3+
namespace Modules\Blog\SuperChannel;
4+
5+
class WelcomeChannel
6+
{
7+
8+
/**
9+
* Create a new channel instance.
10+
*/
11+
public function __construct()
12+
{
13+
//
14+
}
15+
16+
/**
17+
* Authenticate the user's access to the channel.
18+
*/
19+
public function join(Operator $user): array|bool
20+
{
21+
//
22+
}
23+
24+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
3+
namespace Modules\Blog\Broadcasting;
4+
5+
class WelcomeChannel
6+
{
7+
8+
/**
9+
* Create a new channel instance.
10+
*/
11+
public function __construct()
12+
{
13+
//
14+
}
15+
16+
/**
17+
* Authenticate the user's access to the channel.
18+
*/
19+
public function join(Operator $user): array|bool
20+
{
21+
//
22+
}
23+
24+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
namespace Modules\Blog\Classes\Api;
4+
5+
class Api\Demo
6+
{
7+
public function __construct()
8+
{
9+
//
10+
}
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
namespace Modules\Blog\Classes;
4+
5+
class Demo
6+
{
7+
public function __construct()
8+
{
9+
//
10+
}
11+
}
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<?php
2+
3+
namespace Modules\Blog\CustomCommands;
4+
5+
use Illuminate\Console\Command;
6+
use Symfony\Component\Console\Input\InputOption;
7+
use Symfony\Component\Console\Input\InputArgument;
8+
9+
class AwesomeCommand extends Command
10+
{
11+
/**
12+
* The name and signature of the console command.
13+
*/
14+
protected $signature = 'command:name';
15+
16+
/**
17+
* The console command description.
18+
*/
19+
protected $description = 'Command description.';
20+
21+
/**
22+
* Create a new command instance.
23+
*/
24+
public function __construct()
25+
{
26+
parent::__construct();
27+
}
28+
29+
/**
30+
* Execute the console command.
31+
*/
32+
public function handle()
33+
{
34+
//
35+
}
36+
37+
/**
38+
* Get the console command arguments.
39+
*/
40+
protected function getArguments(): array
41+
{
42+
return [
43+
['example', InputArgument::REQUIRED, 'An example argument.'],
44+
];
45+
}
46+
47+
/**
48+
* Get the console command options.
49+
*/
50+
protected function getOptions(): array
51+
{
52+
return [
53+
['example', null, InputOption::VALUE_OPTIONAL, 'An example option.', null],
54+
];
55+
}
56+
}

0 commit comments

Comments
 (0)