Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

JackD's avatar

security metrics for laravel website

is there any security metrics that is available or would you recommend to use for testing on a website made from laravel before going to live hosting?

0 likes
2 replies
miguel.nascimento's avatar

Off the top of my head:

  1. Set debugging to false. (I've stumbled upon dozens of sites where debugging was set to true and those sites would come up whenever I googled an error name that came up and I was trying to solve.)
  2. Make sure all your DB queries are SQL-Injection proof. (i.e. use ORM).
  3. Make sure all user input that is being displayed is escaped in blade. {{ }} instead of {!! !!}
  4. Don't store credit card numbers.
JackD's avatar

thanks bro, but sometime i have to use form in this kind of format

  <form method="POST" action="/ducks" novalidate>

            <div class="form-group">
                <label for="name">Name</label>
                <input type="text" id="name" class="form-control" name="name" placeholder="Somebody Important">
            </div>

            <div class="form-group">
                <label for="email">Email</label>
                <input type="email" id="email" class="form-control" name="email" placeholder="super@cool.com">
            </div>

            <div class="form-group">
                <label for="password">Password</label>
                <input type="password" id="password" class="form-control" name="password">
            </div>

            <div class="form-group">
                <label for="password_confirm">Confirm Password</label>
                <input type="password" id="password_confirm" class="form-control" name="password_confirm">
            </div>

            <button type="submit" class="btn btn-success">Go Ducks Go!</button>

        </form>

Please or to participate in this conversation.