You can use value()
method to get single column's value from the first result of a query
1// Instead of2Integration::where('name', 'foo')->first()->active;3 4// You can use5Integration::where('name', 'foo')->value('active');6 7// or this to throw an exception if no records found8Integration::where('name', 'foo')->valueOrFail('active')';
Tip given by @justsanjit