-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
1 parent
c9a191c
commit 67530ca
Showing
18 changed files
with
406 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
namespace {{ namespace }}; | ||
|
||
use Illuminate\Database\Eloquent\Model; | ||
use Illuminate\Contracts\Database\Eloquent\CastsInboundAttributes; | ||
|
||
class {{ class }} implements CastsInboundAttributes | ||
{ | ||
public function set(Model $model, string $key, mixed $value, array $attributes): mixed | ||
{ | ||
return $value; | ||
} | ||
} |
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,19 @@ | ||
<?php | ||
|
||
namespace {{ namespace }}; | ||
|
||
use Illuminate\Database\Eloquent\Model; | ||
use Illuminate\Contracts\Database\Eloquent\CastsAttributes; | ||
|
||
class {{ class }} implements CastsAttributes | ||
{ | ||
public function get(Model $model, string $key, mixed $value, array $attributes): mixed | ||
{ | ||
return $value; | ||
} | ||
|
||
public function set(Model $model, string $key, mixed $value, array $attributes): mixed | ||
{ | ||
return $value; | ||
} | ||
} |
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,11 @@ | ||
<?php | ||
|
||
namespace {{ namespace }}; | ||
|
||
class {{ class }} | ||
{ | ||
public function __invoke(): void | ||
{ | ||
|
||
} | ||
} |
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,8 @@ | ||
<?php | ||
|
||
namespace {{ namespace }}; | ||
|
||
class {{ class }} | ||
{ | ||
|
||
} |
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,30 @@ | ||
<?php | ||
|
||
namespace {{ namespace }}; | ||
|
||
use {{ namespacedModel }}; | ||
use Illuminate\Http\Request; | ||
use {{ namespacedParentModel }}; | ||
|
||
class {{ class }} | ||
{ | ||
public function store(Request $request, {{ parentModel }} ${{ parentModelVariable }}): never | ||
{ | ||
abort(404); | ||
} | ||
|
||
public function show({{ parentModel }} ${{ parentModelVariable }}) | ||
{ | ||
// | ||
} | ||
|
||
public function update(Request $request, {{ parentModel }} ${{ parentModelVariable }}) | ||
{ | ||
// | ||
} | ||
|
||
public function destroy({{ parentModel }} ${{ parentModelVariable }}): never | ||
{ | ||
abort(404); | ||
} | ||
} |
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,40 @@ | ||
<?php | ||
|
||
namespace {{ namespace }}; | ||
|
||
use {{ namespacedModel }}; | ||
use Illuminate\Http\Request; | ||
use {{ namespacedParentModel }}; | ||
|
||
class {{ class }} | ||
{ | ||
public function create({{ parentModel }} ${{ parentModelVariable }}): never | ||
{ | ||
abort(404); | ||
} | ||
|
||
public function store(Request $request, {{ parentModel }} ${{ parentModelVariable }}): never | ||
{ | ||
abort(404); | ||
} | ||
|
||
public function show({{ parentModel }} ${{ parentModelVariable }}) | ||
{ | ||
// | ||
} | ||
|
||
public function edit({{ parentModel }} ${{ parentModelVariable }}) | ||
{ | ||
// | ||
} | ||
|
||
public function update(Request $request, {{ parentModel }} ${{ parentModelVariable }}) | ||
{ | ||
// | ||
} | ||
|
||
public function destroy({{ parentModel }} ${{ parentModelVariable }}): never | ||
{ | ||
abort(404); | ||
} | ||
} |
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,29 @@ | ||
<?php | ||
|
||
namespace {{ namespace }}; | ||
|
||
use {{ rootNamespace }}Http\Controllers\Controller; | ||
use Illuminate\Http\Request; | ||
|
||
class {{ class }} extends Controller | ||
{ | ||
public function store(Request $request): never | ||
{ | ||
abort(404); | ||
} | ||
|
||
public function show() | ||
{ | ||
// | ||
} | ||
|
||
public function update(Request $request) | ||
{ | ||
// | ||
} | ||
|
||
public function destroy(): never | ||
{ | ||
abort(404); | ||
} | ||
} |
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,39 @@ | ||
<?php | ||
|
||
namespace {{ namespace }}; | ||
|
||
use {{ rootNamespace }}Http\Controllers\Controller; | ||
use Illuminate\Http\Request; | ||
|
||
class {{ class }} extends Controller | ||
{ | ||
public function create(): never | ||
{ | ||
abort(404); | ||
} | ||
|
||
public function store(Request $request): never | ||
{ | ||
abort(404); | ||
} | ||
|
||
public function show() | ||
{ | ||
// | ||
} | ||
|
||
public function edit() | ||
{ | ||
// | ||
} | ||
|
||
public function update(Request $request) | ||
{ | ||
// | ||
} | ||
|
||
public function destroy(): never | ||
{ | ||
abort(404); | ||
} | ||
} |
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,8 @@ | ||
<?php | ||
|
||
namespace {{ namespace }}; | ||
|
||
enum {{ class }}: {{ type }} | ||
{ | ||
// | ||
} |
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,8 @@ | ||
<?php | ||
|
||
namespace {{ namespace }}; | ||
|
||
enum {{ class }} | ||
{ | ||
// | ||
} |
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,43 @@ | ||
<?php | ||
|
||
namespace {{ namespace }}; | ||
|
||
use Illuminate\Bus\Queueable; | ||
use Illuminate\Contracts\Queue\ShouldQueue; | ||
use Illuminate\Mail\Mailable; | ||
use Illuminate\Mail\Mailables\Content; | ||
use Illuminate\Mail\Mailables\Envelope; | ||
use Illuminate\Queue\SerializesModels; | ||
|
||
class {{ class }} extends Mailable | ||
{ | ||
use Queueable; | ||
use SerializesModels; | ||
|
||
public function __construct() | ||
{ | ||
// | ||
} | ||
|
||
public function envelope(): Envelope | ||
{ | ||
return new Envelope( | ||
subject: '{{ subject }}', | ||
); | ||
} | ||
|
||
public function content(): Content | ||
{ | ||
return new Content( | ||
markdown: '{{ view }}', | ||
); | ||
} | ||
|
||
/** | ||
* @return array<int, \Illuminate\Mail\Mailables\Attachment> | ||
*/ | ||
public function attachments(): array | ||
{ | ||
return []; | ||
} | ||
} |
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,35 @@ | ||
<?php | ||
|
||
namespace {{ namespace }}; | ||
|
||
use Illuminate\Bus\Queueable; | ||
use Illuminate\Contracts\Queue\ShouldQueue; | ||
use Illuminate\Notifications\Messages\MailMessage; | ||
use Illuminate\Notifications\Notification; | ||
|
||
class {{ class }} extends Notification | ||
{ | ||
use Queueable; | ||
|
||
public function __construct() | ||
{ | ||
// | ||
} | ||
|
||
public function via(object $notifiable): array | ||
{ | ||
return ['mail']; | ||
} | ||
|
||
public function toMail(object $notifiable): MailMessage | ||
{ | ||
return (new MailMessage)->markdown('{{ view }}'); | ||
} | ||
|
||
public function toArray(object $notifiable): array | ||
{ | ||
return [ | ||
// | ||
]; | ||
} | ||
} |
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,38 @@ | ||
<?php | ||
|
||
namespace {{ namespace }}; | ||
|
||
use Illuminate\Bus\Queueable; | ||
use Illuminate\Contracts\Queue\ShouldQueue; | ||
use Illuminate\Notifications\Messages\MailMessage; | ||
use Illuminate\Notifications\Notification; | ||
|
||
class {{ class }} extends Notification | ||
{ | ||
use Queueable; | ||
|
||
public function __construct() | ||
{ | ||
// | ||
} | ||
|
||
public function via(object $notifiable): array | ||
{ | ||
return ['mail']; | ||
} | ||
|
||
public function toMail(object $notifiable): MailMessage | ||
{ | ||
return (new MailMessage) | ||
->line('The introduction to the notification.') | ||
->action('Notification Action', url('/')) | ||
->line('Thank you for using our application!'); | ||
} | ||
|
||
public function toArray(object $notifiable): array | ||
{ | ||
return [ | ||
// | ||
]; | ||
} | ||
} |
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,8 @@ | ||
<?php | ||
|
||
namespace {{ namespace }}; | ||
|
||
class {{ class }} | ||
{ | ||
// | ||
} |
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,33 @@ | ||
<?php | ||
|
||
namespace {{ namespace }}; | ||
|
||
use {{ namespacedModel }}; | ||
|
||
class {{ class }} | ||
{ | ||
public function created({{ model }} ${{ modelVariable }}): void | ||
{ | ||
// | ||
} | ||
|
||
public function updated({{ model }} ${{ modelVariable }}): void | ||
{ | ||
// | ||
} | ||
|
||
public function deleted({{ model }} ${{ modelVariable }}): void | ||
{ | ||
// | ||
} | ||
|
||
public function restored({{ model }} ${{ modelVariable }}): void | ||
{ | ||
// | ||
} | ||
|
||
public function forceDeleted({{ model }} ${{ modelVariable }}): void | ||
{ | ||
// | ||
} | ||
} |
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,15 @@ | ||
<?php | ||
|
||
namespace {{ namespace }}; | ||
|
||
use Illuminate\Database\Eloquent\Builder; | ||
use Illuminate\Database\Eloquent\Model; | ||
use Illuminate\Database\Eloquent\Scope; | ||
|
||
class {{ class }} implements Scope | ||
{ | ||
public function apply(Builder $builder, Model $model): void | ||
{ | ||
// | ||
} | ||
} |
Oops, something went wrong.