Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Oen44's avatar
Level 1

Questions about Blade, Database and encoding files

Hi,

I'm working on web app using Laravel that will display and allow to edit players ban list (from game server) from database. I'm going to sell that app (using license per domain) and would like to know few things.

  1. I'd like to allow app owners to edit templates so they can create their own style. There is nothing wrong with editing blade templates when app is deployed to production, right? No commands needed, just editing files?
  2. Creating database tables. When user uploads app files on their servers and visits for the first time, installation process will be shown. User will have to provide database details and create first account. That should be simple, but what about creating tables? I can't use php artisan migration command, it has to be done using PHP code. Should I just make query with CREATE TABLE? And what about storing Database details? Should I edit .env file using PHP and put user Database details there?
  3. As I said before, I'm going to sell that app and would like to create some type of license that will work for single domain only. So if someone have license for Google.com it's not going to work on Bing.com. To make sure that someone won't hack it and edit, I'd like to encode that file and one of important Laravel files that will check for license and throw error if it's not found. But here is the catch. I can't use something like Zen Guard or IonCube, I can't afford it, I need something free and something that won't be easy to crack (like just by pasting on some website and it return source code).

Edit

Ad 3. Done using custom code obfuscator.

0 likes
2 replies
Oen44's avatar
Level 1

@HODA - I don't want to host or know about users databases. They have to use their own hosted database server.

Please or to participate in this conversation.