Laravel

Laravel is a nice modern PHP framework by Tayler Otwell, read more about it at http://laravel.com

Security Logo

Laravel Security Best Practices – A List of Tips for Coding

In this blog we describe a few easy security mistakes and how to fix them. 1. Not Using HTTPS 2. Using Weak Encryption Keys 3. Not Validating Input Data 4. Storing Sensitive Data in the Codebase 5. Improper File Permissions 6. Not Escaping User-Generated Content {{ $userInput }} // Escaped{!! $userInput !!} // Unescaped (Be careful) 7. Not Limiting Mass Assignment 8. Exposing […]

Laravel Security Best Practices – A List of Tips for Coding Read More »

Laravel Octane Swoole

Laravel Octane and Homestead: letting them work together

With the advent of Laravel Octane, it’s possible to take the robust foundation of Laravel and inject it with high-octane performance, leveraging powerful server technologies like Roadrunner and Swoole. Meanwhile, Laravel Homestead provides a hassle-free development environment to keep things smooth and consistent. In this post, we’ll explore integrating Laravel Octane into Laravel Homestead and

Laravel Octane and Homestead: letting them work together Read More »

Sessions table no ip address

Laravel Database Sessions Table without IP Address & User Agent Collection – GDPR friendly

For some strange reason Laravel collects IP addresses and user agents in the Session Database Table driver. Almost all session drivers, except from the database driver don’t seem to collect IP addresses. The Simple Way To prevent this mostly, the easiest (almost non-code) way is to change the column types of the ip address and

Laravel Database Sessions Table without IP Address & User Agent Collection – GDPR friendly Read More »

Laravel Vapor

Going Serverless for PHP and Laravel: the options compared

Not every Laravel professional is a server professional and that is fine. Still, many Laravel apps are hosted on VPS instances. Serverless gives a way to host Laravel or PHP without thinking about hosting. In this article we compare various options. Hosting on AWS Lamda via Bref There is an excellent package called Bref, which

Going Serverless for PHP and Laravel: the options compared Read More »

Laravel Bref Serverless ENOMEM memory issues – solving them

When calling: I receive: Or: This is likely because your computer of Virtualbox / vagrant instance does not have enough memory. I tried increasing the memory in Virtualbox, but that didn’t work. Strangely enough, when exiting the vagrant environment, installing serverless on my Mac and running the command again from there, it works:

Laravel Bref Serverless ENOMEM memory issues – solving them Read More »

Laravel Telescope

Laravel Telescope: The command “telescope:prune” does not exist.

Since upgrading Laravel to the newest versions, telescope:prune does not always work anymore and gives this error: Telescope is installed though. Hopefully, it will be solved soon. It especially doesn’t seem to work when adding the —hours flag, for example telescope:prune –hours=96. For me, both didn’t work. So far, the way to circumvent this is

Laravel Telescope: The command “telescope:prune” does not exist. Read More »

Laravel resolving-declaration translatorinterface error display

Resolving the “Declaration of TranslatorInterface Must Be Compatible” Error in Laravel

One of Laravel’s possible issues is the “Declaration of TranslatorInterface Must Be Compatible” error, which can be quite frustrating to resolve. In this article, we will discuss a common solution to this error and an alternative approach if the standard fix doesn’t work for you. The Error The error message in question typically looks like

Resolving the “Declaration of TranslatorInterface Must Be Compatible” Error in Laravel Read More »

Laravel Upgrading Cycle

Why Laravel Is Not Always Fun Anymore Due To Its Upgrading Cycle

I used to develop projects with PHP only, without a framework. Different classes, functions, etc. Until it became a mess and I was looking for something more structural. Laravel came onto my journey and I love(d) it. Finally having a structured way of writing projects with Model, View and Controller structures with the Blade engine

Why Laravel Is Not Always Fun Anymore Due To Its Upgrading Cycle Read More »

Laravel Upgrade to PHP 8.1: Attribute value must be of type bool for selected attribute, array given: Laravel Upgrade to PHP 8.1

When upgrading Laravel to PHP 8.1, you could receive the following notice: The reason: This should likely be in your theme or Eloquent code. Try adding a new simple temporary route in routes/web.php: When opening /test it should probably be working. That is why it could be something in your theme. Navigate to your blade

Laravel Upgrade to PHP 8.1: Attribute value must be of type bool for selected attribute, array given: Laravel Upgrade to PHP 8.1 Read More »

en_USEnglish
Scroll to Top