Skip to content

Tag: laravel

Laravel preselect in a dropdown menu

I would like to pre-select a value for my dropdown but do not know what to put in order for the equivalence comparison. My current code is below: I suppose the space I put $organization->organization_recordid is where I should do the pre-selection. The value that I want to select is {{$service->organiza…

Laravel get values that contains string in where clause

I’m trying to get in where clause the cities that contains certain string. For example, if I search for ‘Alexandria’ I want the results to have also ‘Alexandria’ and ‘Alexandria, Romania’ results. I tried the following code but this is not working: I also tried the fo…

Ldap bind message in Laravel

I have a question. Currently I am working with ldap connection. I have no issue with ldap connection as I am using manual ldap codes. My connection with ldap is success. All seems good when I enter the correct username and password. I have problem when I enter wrong password, the page will show “ErrorEx…

Using Laravel’s WhereIn to search multiple tables

I have 3 SQL tables. clients events client_events Because a client can have multiple events, I made the third table to show those relationships. I am using the following code to retrieve all of the clients that have the have a record matching this event, but it is only returning 1 record when there are multip…