I don't think you can initialize your instance variables like that. Try this instead?
class ShowTables {
public $allTables;
public function __construct()
{
$this->allTables = DB::select('SHOW TABLES');
}
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community