my approach would be this $combobox = array_build( User::all(), function( $key, $value ) { retu...
this is how I made CRUD with laravel, still maybe exists a better approach // models/Post.php class...
why do you need to concat strings with mysql, relegate that work to php only use mysql for retrievin...
you have missed the use keyword ->whereIn('users_id', function($query) use( $userId )
The Laravel portal for problem solving, knowledge sharing and community building.