You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.
Aryan Kumar edited this page Nov 13, 2022
·
1 revision
If you are using larave 8 and want to handle the exception "MissingShopDomainException" then you can handle this exception using handler.php in laravel. Go to app->Exceptions->Handler and write below code:
Include this on top
use Osiset\ShopifyApp\Exceptions\MissingShopDomainException;
use Illuminate\Support\Facades\Redirect;
And inside function register write:
public function register(){
$this->renderable(function(MissingShopDomainException $e){
return Redirect::to('https://www.shopify.com/in/login');
});
}
This will redirect to the shopify login page when anyone will try to hit the base url without login.
Welcome to the wiki!
Please see the homepage for a list of relevant pages.