'boolean', 'config_index_show_dashboard_nav' => 'boolean', 'created_at' => 'datetime', 'updated_at' => 'datetime', ]; /** * Get content by key and bus_id * * @param string $key * @param int $busId * @return self|null */ public static function getByKey(string $key, int $busId) { return self::where('config_index_key', $key) ->where('config_index_bus_id', $busId) ->first(); } }