// Check it has account_id $table_name = call_user_func($this->model.'::table'); $locked_tables = array('table_a', 'table_b', 'table_c'); // im moving this to a config if(in_array($table_name, $locked_tables)) $this->where('account_id', \Session::get('account_id'));
It looks like you're new here. If you want to get involved, click one of these buttons!