skip to Main Content

Laravel 9 Route [login] not defined

api.php file:- <?php use AppHttpControllersUserController; use IlluminateHttpRequest; use IlluminateSupportFacadesRoute; /* |-------------------------------------------------------------------------- | API Routes |-------------------------------------------------------------------------- | | Here is where you can register API routes for your application. These | routes are loaded by the RouteServiceProvider within a group which…

VIEW QUESTION

Type hinting a service class in a Laravel model's constructor

In my Contact model, I'm trying to type hint a service class: use AppServicesContactService; class Contact extends Model { /** * @var AppServicesContactService */ protected $contactService; public function __construct(ContactService $contactService) { $this->contactService = $contactService; } } use AppServicesCRMCRMService; class ContactService…

VIEW QUESTION

How to add background image in laravel 9

I am trying to add a background image for my website in Laravel 9.51. I've used this in my css file: body { background-image: url("background.jpg"); } But it doesn't work. Also tried: body { background-image: url({{asset('background.jpg')}}); } but it doesn't…

VIEW QUESTION

How to apply multiple where condition on laravel eloquent having mutliple models

I have a model with four relations like as below public function custform_formfields() { return $this->hasOne(FormFieldMapping::class,'field_id','field_id'); } public function custform_fieldtype() { return $this->hasOne(FieldType::class, 'fieldtype_id', 'html_field_type'); } public function custform_forms() { return $this->hasOne(CustomForms::class,'form_id', 'form_id'); } public function custform_options() { return $this->hasOne(FormOptions::class,'option_id',…

VIEW QUESTION
Back To Top
Search