Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[main] Update framework to version 10 #106

Merged
merged 40 commits into from
Nov 2, 2023
Merged

[main] Update framework to version 10 #106

merged 40 commits into from
Nov 2, 2023

Conversation

Kipjr
Copy link
Member

@Kipjr Kipjr commented Jul 10, 2023

No description provided.

'name' => fake()->name(),
'email' => fake()->unique()->safeEmail(),
'email_verified_at' => now(),
'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not use bcrypt like before?

|
*/

$app = require_once __DIR__.'/../bootstrap/app.php';
require __DIR__.'/../vendor/autoload.php';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really hope you know what you're doing in this file 😅

@@ -13,6 +13,6 @@
|
*/

Route::middleware('auth:api')->get('/user', function (Request $request) {
Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this correct? Why is it changed from api to sanctum?

|
*/

Route::get('/', [HomeController::class, 'index'])->name('home');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here too I hope you know what you're doing haha. Hopefully all went well

Copy link
Member

@SubSide SubSide left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments

{
return parent::render($request, $exception);
}
$this->reportable(function (Throwable $e) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was updated from Laravel itself. See commit here:
laravel/laravel@4931af1

Copy link

@Raeolu Raeolu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welp I don't think I added much with this review but I hope it's still a bit useful :3

{
$this->registerPolicies();
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this line of code not necessary anymore?

Route::get('login/{token}', 'LoginController@loginByToken');
Route::match(['get', 'post'], 'login', 'LoginController@login')->name('login');
Route::post('logout', 'LoginController@logout')->name('logout');
Route::get('login/{token}', [LoginController::class, 'loginByToken']);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this route could also have a name for consistencyy

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason I didn't add a name to this one in the past, is because with a name you allow to redirect/link to it through code. So in a way I tried to enforce here that you can only do it by manually putting in the URL in the browser


'max_age' => 0,

'supports_credentials' => false,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this should be set to true at some point in the future if authentication is necessary for the api/* routes?

@Kipjr Kipjr requested a review from SubSide July 11, 2023 21:33
@Kipjr Kipjr marked this pull request as ready for review July 13, 2023 04:54
@Kipjr Kipjr changed the base branch from main to main_new November 2, 2023 07:35
@Kipjr Kipjr merged commit 13b3031 into main_new Nov 2, 2023
1 check passed
@Kipjr Kipjr deleted the main-docker branch December 3, 2023 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code php Pull requests that update Php code Section: Security Section: Technical Status: In Progress Status: Review Needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants