Laravel Allow Only registered users to read a html generated magazine (pdf) from FlippingBook -
in laravel want let registered user access , read html generated magazine in flipping book (it generates html/flash magazine ui), generates index.html . done route filter if view. since have generated code there way without rewriting code flipping book generated (maybe .htaccess) let registered users read magazines? , redirect not logged in main page?
flipping book example magazine (also flipping book generates whole page not modal)
any hint or appriciated thank you.
on route, add middleware option auth. redirect people when tries access route hasn't logged in.
route::get('magazine', ['uses' => 'somecontroller@somemethod', 'middleware' => 'auth']);
Comments
Post a Comment