skip to Main Content

Does Laravel-Postman return a 200 code without content?

I have login metod in Laravel api. When I try to send request i have code 200 without content in Postman AuthController.php <?php namespace AppHttpControllers; use AppHttpRequestsLoginRequest; use AppServicesAuthService; use Exception; use IlluminateAuthAuthenticationException; use IlluminateHttpRequest; class AuthController extends Controller {…

VIEW QUESTION

Does replyTo() in Laravel mailable override global ‘reply_to’ setting?

In config/mail.php we have: 'reply_to' => [ 'address' => env('MAIL_REPLY_TO_ADDRESS', '[email protected]'), 'name' => env('MAIL_REPLY_TO_NAME', 'Company') ], And the mailable looks like this: <?php namespace AppMail; use AppUser; use IlluminateBusQueueable; use IlluminateContractsQueueShouldQueue; use IlluminateMailMailable; use IlluminateQueueSerializesModels; class SupportMessage extends Mailable implements…

VIEW QUESTION

Can Laravel 9 replace interface implementation in tests?

Here is an example of how I declared my configuration for MyService public function register(): void { $this->app->when(MyService::class) ->needs(IUser::class) ->give(fn (Application $app) => $app->make(ICompanyUserProvider::class)->getCompanyUser()); } So I want to replace ICompanyUserProvider implementation for testing purposes. I have already seen a…

VIEW QUESTION

Can’t Laravel 10 update data?

i can't update table data in laravel 10 with controller resource my code: // controller public function update(Request $request, string $id):RedirectResponse { // $input = $request->validate([ 'id'=>'required', 'name'=>'required', 'description'=>'required', ]); $accounting_group = AccountingGroup::findOrFail($id); $accounting_group->update($input); return redirect()->route('accounting_group.index')->with(['success' => 'Data telah disimpan']);…

VIEW QUESTION
Back To Top
Search