Browse latest tricks and tips on .

Laravel get server ip

How to get the server IP with Laravel?Use below code to get IP address server in Laravel.request()->server('SERVER_ADDR'); You can also use old php way to get server ip by $_SE ...
published on : 5 hours ago 12 Comments

findorFail method in Laravel

How to use findOrFail() method?Sometimes you may wish to throw an exception if a specific record is not found. To do this, you may use the findOrFail method in Laravel findOrFail m ...
published on : 5 hours ago 12 Comments

How to protect your .env file from public access in Laravel?

How to secure .env file in laravelIf you are a developer and developing an app on Laravel or Symfony then you certainly are familiar with a file named as .env file which  ...
published on : 1 hour ago 12 Comments