💡 Free Laravel Tips and Tricks eBook
Tags: laravel, php, opensource, books
Published: 2021-07-26 10:10:28

This is an open-source `Laravel Tips and Tricks eBook` that is a collection of my own notes that I've put together for myself throughout the years. You would more likely than not need many of those tips at some point in your career as a Laravel Developer.

The guide is suitable for anyone working as a Laravel developer and would love to learn some random Laravel tips and tricks. You can read the chapters in this book in a random order as they are completely separate tips or tricks.

{% github https://github.com/bobbyiliev/laravel-tips-and-tricks-ebook %}

## 🚀 Download

To download a copy of the ebook use one of the following links:

* [Dark mode](https://github.com/bobbyiliev/laravel-tips-and-tricks-ebook/raw/main/ebook/en/export/laravel-tips-and-tricks-dark.pdf)

* [Light mode](https://github.com/bobbyiliev/laravel-tips-and-tricks-ebook/raw/main/ebook/en/export/laravel-tips-and-tricks-light.pdf)

## 📘 Chapters

Some of the chapters are:

* **About the book**
* **[How to Install Laravel on DigitalOcean with 1-Click](https://devdojo.com/bobbyiliev/how-to-install-laravel-on-digitalocean-with-1-click)**
* **[How to get a free domain name for your Laravel project](https://devdojo.com/bobbyiliev/how-to-get-a-free-domain-name-for-your-laravel-project)**
* **[8 Awesome VS Code Extensions for Laravel Developers](https://devdojo.com/bobbyiliev/8-awesome-vs-code-extensions-for-laravel-developers)**
* **[What is Laravel Jetstream and how to get started](https://devdojo.com/bobbyiliev/what-is-laravel-jetstream-and-how-to-get-started)**
* **[How to check Laravel Blade View Syntax using artisan](https://devdojo.com/bobbyiliev/how-to-check-laravel-blade-view-syntax-using-artisan)**
* **[How to speed up your Laravel application with PHP OPcache](https://devdojo.com/bobbyiliev/how-to-speed-up-your-laravel-application-with-php-opcache)**
* **[What is Laravel Sail and how to get started](https://devdojo.com/bobbyiliev/what-is-laravel-sail-and-how-to-get-started)**
* **[How to add simple search to your Laravel blog/website](https://devdojo.com/bobbyiliev/how-to-add-simple-search-to-your-laravel-blogwebsite)**
* **[How to Create Custom Laravel Maintenance Page](https://devdojo.com/bobbyiliev/how-to-create-custom-laravel-maintenance-page)**
* **[What is Laravel Blade UI Kit and how to get started](https://devdojo.com/bobbyiliev/what-is-laravel-blade-ui-kit-and-how-to-get-started)**
* **[How to Add a Simple Infinite Scroll Pagination to Laravel?](https://devdojo.com/bobbyiliev/how-to-add-a-simple-infinite-scroll-pagination-to-laravel)**
* **[How to add a simple RSS feed to Laravel without using a package](https://devdojo.com/bobbyiliev/how-to-add-a-simple-rss-feed-to-laravel-without-using-package)**
* **[What is Laravel Zero and how to get started](https://devdojo.com/bobbyiliev/what-is-laravel-zero-and-how-to-get-started)**
* **[How to build a blog with Laravel and Wink](https://devdojo.com/bobbyiliev/how-to-build-a-blog-with-laravel-and-wink)**
* **[How to copy or move records from one table to another in Laravel](https://devdojo.com/bobbyiliev/how-to-copy-or-move-records-from-one-table-to-another-in-laravel)**
* **[How to generate title slugs in Laravel](https://devdojo.com/bobbyiliev/how-to-generate-title-slugs-in-laravel)**
* **[What is Laravel Enlightn and how to use it](https://devdojo.com/bobbyiliev/what-is-laravel-enlightn-and-how-to-use-it)**
* **[How to consume an external API with Laravel and Guzzle](https://devdojo.com/bobbyiliev/how-to-consume-an-external-api-with-laravel-and-guzzle)**
* **[How to send Discord notifications with Laravel](https://devdojo.com/bobbyiliev/how-to-send-discord-notifications-with-laravel)**
* **[How to encrypt and decrypt a string in Laravel](https://devdojo.com/bobbyiliev/how-to-encrypt-and-decrypt-a-string-in-laravel)**
* **[How to remove a package from Laravel using composer](https://devdojo.com/bobbyiliev/how-to-remove-a-package-from-laravel-using-composer)**
* **[What is Laravel Breeze and how to get started](https://devdojo.com/bobbyiliev/what-is-laravel-breeze-and-how-to-get-started)**
* **[What are signed routes in Laravel and how to use them](https://devdojo.com/bobbyiliev/what-are-signed-routes-in-laravel-and-how-to-use-them)**
* **[How to Quickly Change the Password for a User in Laravel](https://devdojo.com/bobbyiliev/how-to-quickly-change-the-password-for-a-user-in-laravel)**
* **[How to convert markdown to HTML in Laravel and Voyager](https://devdojo.com/bobbyiliev/how-to-convert-markdown-to-html-in-laravel-and-voyager)**
* **[How to Create Response Macros in Laravel](https://devdojo.com/bobbyiliev/how-to-create-response-macros-in-laravel)**
* **[How to Get the Base URL in Laravel](https://devdojo.com/bobbyiliev/how-to-get-the-base-url-in-laravel)**
* **[How to limit the length of a string in Laravel](https://devdojo.com/bobbyiliev/how-to-limit-the-length-of-a-string-in-laravel)**
* **[How to check 'if not null' with Laravel Eloquent](https://devdojo.com/bobbyiliev/how-to-check-if-not-null-with-laravel-eloquent)**
* **[How to get the current date and time in Laravel](https://devdojo.com/bobbyiliev/how-to-get-the-current-date-and-time-in-laravel)**
* **[How to Get Current Route Name in Laravel](https://devdojo.com/bobbyiliev/how-to-get-current-route-name-in-laravel)**
* **[How to Count and Detect Empty Laravel Eloquent Collections](https://devdojo.com/bobbyiliev/how-to-count-and-detect-empty-laravel-eloquent-collections)**
* **[How to use Forelse loop in Laravel Blade](https://devdojo.com/bobbyiliev/how-to-use-forelse-loop-in-laravel-blade)**
* **[How to Delete All Entries in a Table Using Laravel Eloquent](https://devdojo.com/bobbyiliev/how-to-delete-all-entries-in-a-table-using-laravel-eloquent)**
* **[How to check if a record exists with Laravel Eloquent](https://devdojo.com/bobbyiliev/how-to-check-if-a-record-exists-with-laravel-eloquent)**
* **[How to Add Multiple Where Clauses Using Laravel Eloquent](https://devdojo.com/bobbyiliev/how-to-add-multiple-where-clauses-using-laravel-eloquent)**
* **[How to Add a New Column to an Existing Table in a Laravel Migration](https://devdojo.com/bobbyiliev/how-to-add-a-new-column-to-an-existing-table-in-a-laravel-migration)**
* **[How to Rollback Database Migrations in Laravel](https://devdojo.com/bobbyiliev/how-to-rollback-database-migrations-in-laravel)**
* **[How to Remove a Migration in Laravel](https://devdojo.com/bobbyiliev/how-to-remove-a-migration-in-laravel)**
* **[How to create a contact form with Laravel Livewire](https://devdojo.com/bobbyiliev/how-to-create-contact-form-with-laravel-livewire)**
* **[How To Display HTML Tags In Blade With Laravel](https://devdojo.com/bobbyiliev/how-to-display-html-tags-in-blade-with-laravel-8)**
* **[How to Set a Variable in Laravel Blade Template](https://devdojo.com/bobbyiliev/how-to-set-a-variable-in-laravel-blade-template)**
* **[How to limit the result with Laravel Eloquent?](https://devdojo.com/bobbyiliev/how-to-limit-the-result-with-laravel-eloquent)**
* **[How to Select Specific Columns in Laravel Eloquent](https://devdojo.com/bobbyiliev/how-to-select-specific-columns-in-laravel-eloquent)**
* **[How to get the Laravel Query Builder to Output the Raw SQL Query?](https://devdojo.com/bobbyiliev/how-to-get-the-laravel-query-builder-to-output-the-raw-sql-query)**
* **[How to Get the Last Inserted Id Using Laravel Eloquent?](https://devdojo.com/bobbyiliev/how-to-get-the-last-inserted-id-using-laravel-eloquent)**
* **[How to Order the Results of all() in Laravel Eloquent?](https://devdojo.com/bobbyiliev/how-to-order-the-results-of-all-in-laravel-eloquent)**
* **[How to fix Laravel Unknown Column 'updated_at'?](https://devdojo.com/bobbyiliev/how-to-fix-laravel-unknown-column-updated-at)**
* **[How to Define Custom ENV Variables in Laravel?](https://devdojo.com/bobbyiliev/how-to-define-custom-env-variables-in-laravel)**
* **[How to fix 'Please provide a valid cache path' error in Laravel?](https://devdojo.com/bobbyiliev/how-to-fix-please-provide-a-valid-cache-path-error-in-laravel)**
* **[How to check your exact Laravel version?](https://devdojo.com/bobbyiliev/how-to-check-your-exact-laravel-version)**
* **[Contact Form with Voyager and Laravel](https://devdojo.com/bobbyiliev/contact-form-with-voyager-and-laravel)**
* **[Scaling Laravel App with Multiple Databases](https://devdojo.com/bobbyiliev/scaling-laravel-app-with-multiple-databases)**
* **Conclusion**

## 🌟 Sponsors

This book is made possible thanks to these fantastic companies!

### 💙 DigitalOcean

DigitalOcean is a cloud services platform delivering the simplicity developers love and businesses trust to run production applications at scale.

It provides highly available, secure, and scalable compute, storage, and networking solutions that help developers build great software faster.

Founded in 2012 with offices in New York and Cambridge, MA, DigitalOcean offers transparent and affordable pricing, an elegant user interface, and one of the largest libraries of open source resources available.

For more information, please visit [https://www.digitalocean.com](https://www.digitalocean.com) or follow [@digitalocean](https://twitter.com/digitalocean) on Twitter.

If you are new to DigitalOcean, you can get a free $100 credit and spin up your own servers via this referral link here:

[Free $100 Credit For DigitalOcean](https://m.do.co/c/2a9bba940f39)

### 👩‍💻 DevDojo

The DevDojo is a resource to learn all things web development and web design. Learn on your lunch break or wake up and enjoy a cup of coffee with us to learn something new.

Join this developer community, and we can all learn together, build together, and grow together.

[Join DevDojo](https://devdojo.com?ref=bobbyiliev)

For more information, please visit [https://www.devdojo.com](https://www.devdojo.com?ref=bobbyiliev) or follow [@thedevdojo](https://twitter.com/thedevdojo) on Twitter.

## 🕸️ Web Page

A web page showcasing the eBook:

[Laravel Tips and Tricks eBook](https://laravel.bobby.sh)

The web page was built using [Tails](http://devdojo.com/tails?ref=bobbyiliev), a new `kick-ass` drag-and-drop TailwindCSS page builder!

### DigitalOcean App Platform

The will be hosted on the [DigitalOcean App Platform](https://www.digitalocean.com/products/app-platform/).

We will utilize the ["Deploy to DigitalOcean" Button](https://www.digitalocean.com/docs/app-platform/how-to/add-deploy-do-button) to deploy to the App Platform:

[![Deploy to DO](https://mp-assets1.sfo2.digitaloceanspaces.com/deploy-to-do/do-btn-blue.svg)](https://cloud.digitalocean.com/apps/new?repo=https://github.com/bobbyiliev/laravel-tips-and-tricks-ebook/tree/main)

## 💻 Laravel Playground

You can follow the tips from the book with this online playground here:

[Laravel Playground](https://laravelplayground.com/#/)

## 👋 About the author

My name is Bobby Iliev, and I have been working as a Linux DevOps Engineer since 2014. I am an avid Linux lover and supporter of the open-source movement philosophy. I am always doing that which I cannot do in order that I may learn how to do it, and I believe in sharing knowledge.

I think it's essential always to keep professional and surround yourself with good people, work hard, and be nice to everyone. You have to perform at a consistently higher level than others. That's the mark of a true professional.

For more information, please visit my blog at [https://bobbyiliev.com](https://bobbyiliev.com), follow me on Twitter [@bobbyiliev_](https://twitter.com/bobbyiliev_) and [YouTube](https://www.youtube.com/channel/UCQWmdHTeAO0UvaNqve9udRw).

In case that you want to support me you can Buy Me a Coffee here:

<a href="https://www.buymeacoffee.com/bobbyiliev" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="41" width="174"></a>


## 🔥 PDF Generation Tool

The project uses [Ibis](https://github.com/themsaid/ibis/) developed by [Mohamed Said](https://github.com/themsaid).

Ibis is a PHP tool that helps you write eBooks in markdown.

## 🎨 Book Cover

The cover for this ebook was created with [Canva.com](https://www.canva.com/join/determined-cork-learn).

If you ever need to create a graphic, poster, invitation, logo, presentation – or anything that looks good — give Canva a go.

Icons made by [Pixel perfect](https://www.flaticon.com/).

## 🔗 Links

- [My blog](https://bobbyiliev.com)
- [Free $100 Credit For DigitalOcean](https://m.do.co/c/2a9bba940f39)
- [Join DevDojo](https://devdojo.com?ref=bobbyiliev)
- [Ibis](https://github.com/themsaid/ibis/)
- [Canva](https://www.canva.com/)
- [Tails](http://devdojo.com/tails)

## 📖 Other books

- [Introduction to Git and GitHub](https://github.com/bobbyiliev/introduction-to-git-and-github-ebook)
- [Introduction to Bash Scripting](https://github.com/bobbyiliev/introduction-to-bash-scripting)
- [Introduction to SQL eBook](https://github.com/bobbyiliev/introduction-to-sql)

## 🤲 Contributing

If you are contributing 🍿 please read the [contributing file](https://github.com/bobbyiliev/laravel-tips-and-tricks-ebook/blob/main/CONTRIBUTING.md) before submitting your pull requests.

Any suggestions for future topics would be appreciated!

To support me, make sure to follow me on Twitter at [@bobbyiliev_](https://twitter.com/bobbyiliev_)