Author: ShairyPortfolio

  • What is JWT?

    What is JWT?

    JWT is JSON Web Token that defines a way for securely transmitting information between different parties as a JSON object. This information can be verified and trusted because it is digitally signed. JWTs can be signed using a secret (with the HMAC algorithm) or a public/private key pair using RSA. Why use JWT? JWTs are…

  • Session Vs JWT

    Session Vs JWT

    Session is used in a single-server application by session ID. A server will need to find a valid session ID on every HTTP request. If your application needs multiple servers, you cannot use session IDs for user authorization. JWT helps solve the multi-server authorization problem by storing the authorized user information on the client-side, not…

  • Using CSS and Images

    Using CSS and Images

    We put all the css and images in public folder. We will create separate folder for each and put images and css inside it. Create new folder for css inside the public folder after that create a new file main.css inside the css folder and copy all the css inside this main.css and use link…

  • Generic layout for header and footer

    Generic layout for header and footer

    For creating a generic layout in Laravel, first of all we need to create a new folder inside the views with the name layouts and create a new file layout.blade.php inside this folder and perform the following steps: Copy all the header and footer content that is same in all the view files from beginning…