Author: ShairyPortfolio

  • Blade Array

    Blade Array

    Array syntax is Laravel is same as in another, here we pass array as a second argument in view and create that array outside Like below and call this array either using any loop but we use foreach loop that do the work simple for an array. There are couple of things that we can…

  • Blade Loops

    Blade Loops

    All the basic syntax of loop is same as in another programming language, but we have to start with @ symbol. For example: <html>     <head>         <title>Laravel Practice</title>     </head>     <body class=”container”>         <div class=”row”>             <div class=”card col-md-8 mt-5 mx-auto”>             @for ($i=0; $i<=5; $i++)                 <p> Value of is {{$i}} </p>…

  • Blade Conditional Statement

    Blade Conditional Statement

    All the basic syntax of conditional statement is same for if, if else, else if, but we have to start with @ symbol. In Laravel there is one new statement for negation i.e. unless that check for negative value        @unless($name==’shairy’)                 <p> Name is not shairy </p>          @endunless For example: <html>     <head>…

  • Blade Basic

    Blade Basic

    As we know we can send the data from route to view using {{ }} – curly braces that is blade syntax. As we know blade is a template engine that make easier to work with data and logic inside of php. Some Basic Blade syntax If we use if statement in Laravel then first…