My function like this :
public function index()
{
$stores = $this->store_service->getListStore();
return view('store.index', compact('stores '));
}
If the method called, it will call store page
I want to add validation server side. So if user open the store page, user can not back to previous page
How can I do it?