-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from Morning-Train/feature/laravel-11
Feature/laravel 11
- Loading branch information
Showing
23 changed files
with
473 additions
and
29 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
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,39 @@ | ||
<?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, SerializesModels; | ||
|
||
public function __construct(): void | ||
{ | ||
// | ||
} | ||
|
||
public function envelope(): Envelope | ||
{ | ||
return new Envelope( | ||
subject: '{{ subject }}', | ||
); | ||
} | ||
|
||
public function content(): Content | ||
{ | ||
return new Content( | ||
markdown: 'markdown.view.name', | ||
); | ||
} | ||
|
||
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,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 []; | ||
} | ||
} |
Oops, something went wrong.