Skip to content

Commit

Permalink
Merge pull request #52 from irsyadadl/laravel-11.x
Browse files Browse the repository at this point in the history
Upgrade to laravel 11
  • Loading branch information
irsyadadl authored Mar 26, 2024
2 parents 1404af0 + cd34157 commit 10fc1e5
Show file tree
Hide file tree
Showing 8 changed files with 793 additions and 1,712 deletions.
2 changes: 1 addition & 1 deletion .phpunit.cache/test-results
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":"pest_2.32.2","defects":[],"times":{"P\\Tests\\Unit\\ExampleTest::__pest_evaluable_that_true_is_true":0.004,"P\\Tests\\Feature\\Auth\\AuthenticationTest::__pest_evaluable_login_screen_can_be_rendered":0.029,"P\\Tests\\Feature\\Auth\\AuthenticationTest::__pest_evaluable_users_can_authenticate_using_the_login_screen":0.117,"P\\Tests\\Feature\\Auth\\AuthenticationTest::__pest_evaluable_users_can_not_authenticate_with_invalid_password":0.209,"P\\Tests\\Feature\\Auth\\EmailVerificationTest::__pest_evaluable_email_verification_screen_can_be_rendered":0.005,"P\\Tests\\Feature\\Auth\\EmailVerificationTest::__pest_evaluable_email_can_be_verified":0.004,"P\\Tests\\Feature\\Auth\\EmailVerificationTest::__pest_evaluable_email_is_not_verified_with_invalid_hash":0.005,"P\\Tests\\Feature\\Auth\\PasswordConfirmationTest::__pest_evaluable_confirm_password_screen_can_be_rendered":0.006,"P\\Tests\\Feature\\Auth\\PasswordConfirmationTest::__pest_evaluable_password_can_be_confirmed":0.102,"P\\Tests\\Feature\\Auth\\PasswordConfirmationTest::__pest_evaluable_password_is_not_confirmed_with_invalid_password":0.208,"P\\Tests\\Feature\\Auth\\PasswordResetTest::__pest_evaluable_reset_password_link_screen_can_be_rendered":0.003,"P\\Tests\\Feature\\Auth\\PasswordResetTest::__pest_evaluable_reset_password_link_can_be_requested":0.01,"P\\Tests\\Feature\\Auth\\PasswordResetTest::__pest_evaluable_reset_password_screen_can_be_rendered":0.007,"P\\Tests\\Feature\\Auth\\PasswordResetTest::__pest_evaluable_password_can_be_reset_with_valid_token":0.011,"P\\Tests\\Feature\\Auth\\PasswordUpdateTest::__pest_evaluable_password_can_be_updated":0.106,"P\\Tests\\Feature\\Auth\\PasswordUpdateTest::__pest_evaluable_correct_password_must_be_provided_to_update_password":0.102,"P\\Tests\\Feature\\Auth\\RegistrationTest::__pest_evaluable_registration_screen_can_be_rendered":0.003,"P\\Tests\\Feature\\Auth\\RegistrationTest::__pest_evaluable_new_users_can_register":0.043,"P\\Tests\\Feature\\ExampleTest::__pest_evaluable_it_returns_a_successful_response":0.003,"P\\Tests\\Feature\\ProfileTest::__pest_evaluable_profile_page_is_displayed":0.021,"P\\Tests\\Feature\\ProfileTest::__pest_evaluable_profile_information_can_be_updated":0.004,"P\\Tests\\Feature\\ProfileTest::__pest_evaluable_email_verification_status_is_unchanged_when_the_email_address_is_unchanged":0.003,"P\\Tests\\Feature\\ProfileTest::__pest_evaluable_user_can_delete_their_account":0.102,"P\\Tests\\Feature\\ProfileTest::__pest_evaluable_correct_password_must_be_provided_to_delete_account":0.102}}
{"version":"pest_2.34.5","defects":[],"times":{"P\\Tests\\Unit\\ExampleTest::__pest_evaluable_that_true_is_true":0.005,"P\\Tests\\Feature\\Auth\\AuthenticationTest::__pest_evaluable_login_screen_can_be_rendered":0.035,"P\\Tests\\Feature\\Auth\\AuthenticationTest::__pest_evaluable_users_can_authenticate_using_the_login_screen":0.104,"P\\Tests\\Feature\\Auth\\AuthenticationTest::__pest_evaluable_users_can_not_authenticate_with_invalid_password":0.207,"P\\Tests\\Feature\\Auth\\EmailVerificationTest::__pest_evaluable_email_verification_screen_can_be_rendered":0.006,"P\\Tests\\Feature\\Auth\\EmailVerificationTest::__pest_evaluable_email_can_be_verified":0.006,"P\\Tests\\Feature\\Auth\\EmailVerificationTest::__pest_evaluable_email_is_not_verified_with_invalid_hash":0.004,"P\\Tests\\Feature\\Auth\\PasswordConfirmationTest::__pest_evaluable_confirm_password_screen_can_be_rendered":0.002,"P\\Tests\\Feature\\Auth\\PasswordConfirmationTest::__pest_evaluable_password_can_be_confirmed":0.064,"P\\Tests\\Feature\\Auth\\PasswordConfirmationTest::__pest_evaluable_password_is_not_confirmed_with_invalid_password":0.208,"P\\Tests\\Feature\\Auth\\PasswordResetTest::__pest_evaluable_reset_password_link_screen_can_be_rendered":0.003,"P\\Tests\\Feature\\Auth\\PasswordResetTest::__pest_evaluable_reset_password_link_can_be_requested":0.015,"P\\Tests\\Feature\\Auth\\PasswordResetTest::__pest_evaluable_reset_password_screen_can_be_rendered":0.005,"P\\Tests\\Feature\\Auth\\PasswordResetTest::__pest_evaluable_password_can_be_reset_with_valid_token":0.01,"P\\Tests\\Feature\\Auth\\PasswordUpdateTest::__pest_evaluable_password_can_be_updated":0.066,"P\\Tests\\Feature\\Auth\\PasswordUpdateTest::__pest_evaluable_correct_password_must_be_provided_to_update_password":0.063,"P\\Tests\\Feature\\Auth\\RegistrationTest::__pest_evaluable_registration_screen_can_be_rendered":0.001,"P\\Tests\\Feature\\Auth\\RegistrationTest::__pest_evaluable_new_users_can_register":0.05,"P\\Tests\\Feature\\ExampleTest::__pest_evaluable_it_returns_a_successful_response":0.001,"P\\Tests\\Feature\\ProfileTest::__pest_evaluable_profile_page_is_displayed":0.002,"P\\Tests\\Feature\\ProfileTest::__pest_evaluable_profile_information_can_be_updated":0.003,"P\\Tests\\Feature\\ProfileTest::__pest_evaluable_email_verification_status_is_unchanged_when_the_email_address_is_unchanged":0.003,"P\\Tests\\Feature\\ProfileTest::__pest_evaluable_user_can_delete_their_account":0.063,"P\\Tests\\Feature\\ProfileTest::__pest_evaluable_correct_password_must_be_provided_to_delete_account":0.062}}
2 changes: 1 addition & 1 deletion app/Http/Controllers/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function index(Request $request)
->select('id', 'name', 'email', 'email_verified_at', 'created_at')
->whereNot('id', $request->user()->id)
->latest()
->fastPaginate(10)
->paginate(10)
->withQueryString();

return inertia('users/index', [
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Middleware/HandleInertiaRequests.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use App\Http\Resources\UserResource;
use Illuminate\Http\Request;
use Inertia\Middleware;
use Tightenco\Ziggy\Ziggy;
use Tighten\Ziggy\Ziggy;

class HandleInertiaRequests extends Middleware
{
Expand Down
7 changes: 1 addition & 6 deletions app/Http/Requests/Auth/LoginRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,7 @@

class LoginRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
public function authorize(): bool
{
return true;
}
Expand Down
13 changes: 6 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,20 @@
],
"license": "MIT",
"require": {
"php": "^8.1",
"php": "^8.2",
"guzzlehttp/guzzle": "^7.8.1",
"hammerstone/fast-paginate": "^1.0.1",
"inertiajs/inertia-laravel": "^0.6.11",
"laravel/framework": "^10.42.0",
"laravel/sanctum": "^3.3.3",
"inertiajs/inertia-laravel": "^1.0",
"laravel/framework": "^11.0",
"laravel/sanctum": "^4.0",
"laravel/tinker": "^2.9.0",
"tightenco/ziggy": "^1.8.1"
"tightenco/ziggy": "^2.0"
},
"require-dev": {
"fakerphp/faker": "^1.23.1",
"laravel/pint": "^1.13.10",
"laravel/sail": "^1.27.2",
"mockery/mockery": "^1.6.7",
"nunomaduro/collision": "^7.10",
"nunomaduro/collision": "^8.0",
"pestphp/pest": "^2.32.2",
"pestphp/pest-plugin-laravel": "^2.2",
"spatie/laravel-ignition": "^2.4.1",
Expand Down
Loading

0 comments on commit 10fc1e5

Please sign in to comment.