You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to implement search functionalities in my website. I have used search aspect class and trying to pass a parameter. Without the parameter everything is working fine.
I have attached my code here.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am trying to implement search functionalities in my website. I have used search aspect class and trying to pass a parameter. Without the parameter everything is working fine.
I have attached my code here.
` $id = Auth::guard('residence_admin')->user()->property_id;
This is the SearchAspect code
` protected $id;
function __construct($id) {
$this->id = $id;
}
This is the error I receive. Please can anyone help?
Unresolvable dependency resolving [Parameter #0 [ $id ]] in class App\SearchClass\AssetSearch
Beta Was this translation helpful? Give feedback.
All reactions