<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Brand extends Model
{
// Set the table name
protected $table = $current_store . '_brand';
}
@tuyenlaptrinh you can set the table name direct in model itself using this. but here you have not mentioned more details. so try to find and replace $current_store variable value in the above snippet and test it. Hope it works. Let me know your feedback.