O'Reilly logo

Learning Laravel 4 Application Development by Hardik Dangar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9. Optimizing and Securing Our Applications

In this chapter we will learn how we can optimize Laravel via the profiler and how to secure our applications. We will also learn how to log data with Laravel as well as how we can add security layers to our application. Here are the topics we are going to cover in this chapter:

  • Handling errors with Laravel
  • Profiling Laravel applications
  • Logging data with Laravel
  • Security in Laravel
    • SQL injections
    • CSRF
    • XSS

We have learned how to create applications with Laravel 4 in prior chapters. Now, we need to focus on small issues and details that will help us optimize Laravel configurations. Let's start with errors.

Handling errors

By default, Laravel sets the debug option in app/config/app.php as true, so whenever ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required