-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added test for filter same last name part of uri
- Loading branch information
Showing
3 changed files
with
119 additions
and
2 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
49 changes: 49 additions & 0 deletions
49
...pport/TestClasses/Controllers/ResourceMethodsWithUri/ResourceMethodsWithUriController.php
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,49 @@ | ||
<?php | ||
|
||
namespace Spatie\RouteDiscovery\Tests\Support\TestClasses\Controllers\ResourceMethodsWithUri; | ||
|
||
use Illuminate\Http\Request; | ||
use Spatie\RouteDiscovery\Attributes\Route; | ||
use Spatie\RouteDiscovery\Tests\Support\TestClasses\Models\User; | ||
|
||
class ResourceMethodsWithUriController | ||
{ | ||
public function index() | ||
{ | ||
} | ||
|
||
#[Route(uri: 'show/{user}')] | ||
public function show(User $user) | ||
{ | ||
} | ||
|
||
#[Route(uri: 'create')] | ||
public function create() | ||
{ | ||
} | ||
|
||
#[Route(uri: 'store')] | ||
public function store(Request $request) | ||
{ | ||
} | ||
|
||
#[Route(uri: '{user}')] | ||
public function edit(User $user) | ||
{ | ||
} | ||
|
||
#[Route(uri: 'update/{user}')] | ||
public function update(User $user) | ||
{ | ||
} | ||
|
||
#[Route(uri: 'delete/{user}')] | ||
public function delete(User $user) | ||
{ | ||
} | ||
|
||
#[Route(uri: 'destroy/{user}')] | ||
public function destroy(User $user) | ||
{ | ||
} | ||
} |