Skip to content

Laravel Models properties declaration

I have the following model: class User extends Authenticatable { private string $first_name; public function name() { return $this->first_name; } } when I call that method from a controller,…

Getting values to compare from a Explode Array of Strings

I have this string that I’m Getting from a Mysql Result: Result1: Then, I have some ID from another mysql Result like this: Result2: Then I’m using an Explode in order to separate Result1:. Like I’m Getting this: Now, I’m doing I’m using a foreach and then using another explode t…