Hello, my name is Adrian. After writing an article about and receiving a better than expected feedback from the readers, I decided to show some more Laravel tips that are used at . 6 Eloquent Tricks Every Laravel Developer Should Know Weap The get() method can accept an array of columns to return Did you know that the method can accept an array with the columns which should be returned? The same thing also works with the method . get() all() Allow access to specific IP addresses when your application is in maintenance mode Laravel allows you to put your application in maintenance mode using the command . While in maintenance, the application will not be accessible by the users. But did you know that you can allow access to specific IP addresses? artisan down Combined where conditions Using combined where conditions is a common case for almost all applications. Did you know there is a different way to write them? Getting the ID of the authenticated user Very often I see developers using to retrieve the id of the authenticated user. There is a better way. Auth::user()->id Faker optional() Sometimes, in 's automated tests a backup record should be not completed. For such cases, Faker has the method. Weap optional() Unsigned columns in the migrations When you have a relation between two tables, the column must be unsigned. To make the column unsigned, the method is used. But there is a second way to achieve the same result. unsigned() Easier dd() If you need to the results of a query, there are two ways. dd() Stay Tuned! Previously published at https://weap.io/blog/7-laravel-tips-you-should-know