Leaf Forum #37
Replies: 23 comments 39 replies
-
Thanks for making this! I have been looking for an alternative to Silex for a few years now. I have tried other frameworks like Lumen, Laravel & Slim, but they were always a pain to setup with my VM's, and usually forced you to adhere to a console generated bundle. |
Beta Was this translation helpful? Give feedback.
-
I'm currently looking for a framework to replace our in-house built MVC framework which we have spent quite some time building over the years. I just don't "get" the major frameworks and to me I want something simple which I can add to if needed and now I come across Leaf. Wow. I think you've done a great job! I'll be getting this set up tomorrow and working through it. Thanks! |
Beta Was this translation helpful? Give feedback.
-
G'day @darko-mychi 👋, Loving Leaf! I have one suggestion to improve cookie management: Add the SameSite option, setting the default to "Lax". SameSite cookies are well supported by modern browsers and remove the need to implement CSRF controls to forms, particularly to login forms. Cheers! |
Beta Was this translation helpful? Give feedback.
-
cannot access: |
Beta Was this translation helpful? Give feedback.
-
Hello @mychidarko , I appreciate leaf php so much, im having an error with my code in database module $order_info = db()->query("SELECT ord.id as order_id, ord.*, stck.*
FROM customer_order ord
LEFT JOIN stocks stck ON ord.stock_id = stck.id
WHERE ord.id = $id;")->first();
$payments = db()->select('payments')->all(); Im having an error on PDO:
How to fix this? |
Beta Was this translation helpful? Give feedback.
-
Hi @mychidarko, first of all, thanks for creating leaf! This is an amazing new framework / module system. I've a couple of questions for contributing code, though:
Regards, |
Beta Was this translation helpful? Give feedback.
-
Please how can I solve this issue? I'm just a user 🙏 |
Beta Was this translation helpful? Give feedback.
-
I can't seem to get the 'app.down' config to be acknowledged. <?php
use Leaf\App;
require __DIR__ . '/vendor/autoload.php';
$app = new App([
'app.down' => true
]);
// these don't work either
// $app->config('app.down', true);
// $app->configure([
// 'app.down' => true
// ]);
$app->get('/', function () use ($app) {
$app->response()->json(Leaf\Config::get('app'));
});
$app->run(); Just starting to look at this framework and I really like it on the surface. I've had issues with updating it as new versions come out though. It seems that |
Beta Was this translation helpful? Give feedback.
-
Hi, can you make samples for I would also suggest putting more efforts on commenting your codes. I love laravel but seeing Laravel's blade/model/etc libraries & codes when you want lightest codebase of leafphp is not good IMHO, rather use laravel correct? maybe make your own Model Class atleast? still that's just me 😅 Cheers! |
Beta Was this translation helpful? Give feedback.
-
Hello,
Now, I want to create a route to this controller as htts://myserver/Dsos. Cheers |
Beta Was this translation helpful? Give feedback.
-
Hello, I'm new to Leaf PHP API,
so i tried, manually connect to database using model, and its working fine, i could get user data, easily, but |
Beta Was this translation helpful? Give feedback.
-
Thank you |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Form validation not valid json Input Data: Controller Validation: Any idea how to fix this ? |
Beta Was this translation helpful? Give feedback.
-
Hi, is it possible to automatically generate multiple JSON schemas from an existing MySQL database? |
Beta Was this translation helpful? Give feedback.
-
How to use DB::transaction() in LeafPHP ? |
Beta Was this translation helpful? Give feedback.
-
Does anyone know how I can add tailwindcss to leaf 3 mvc optimally? When I have tried to do it, some errors always come out. |
Beta Was this translation helpful? Give feedback.
-
Hello, I want to know how I can translate leaf's error messages into another language. |
Beta Was this translation helpful? Give feedback.
-
Can I use ADR patterns with Leaf? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
This is a great initiative, it is not too-loaded like other major frameworks. However, the documentation is quite confusing and too linked. I am struggling to understand how I can integrate Leaf API with Leaf UI, I am trying to transition from Laravel + Livewire but the docs are taking me around. |
Beta Was this translation helpful? Give feedback.
-
I think I put the 1,000th star in. |
Beta Was this translation helpful? Give feedback.
-
How to configure config/database.php to connect to different banks? It's possible? |
Beta Was this translation helpful? Give feedback.
-
👋🏽 Welcome to the forum
Hello! Welcome to the discussion forum for Leaf. This is a great place to introduce a project you’re working on, get help with something, discuss a plugin or particular technical topic, or just get to know other users in the community. We hope that you:
build together 💪.
In case of questions and challenges, in order to receive the best answers to your questions please follow these simple guidelines.
Be descriptive about your question or problem and be sure to include any errors. Single line topics will rarely receive answers and do not just post a screenshot.
Provide examples of the code in question and use syntax highlighting.
Break down the issue in your code and provide a link to an example that replicates it (if applicable).
Following these few steps will greatly improve your chances of getting a good quality answer to your issue. Remember, everyone is here to share ideas and to help out using their own free time. Making an effort to craft a well-thought-out topic pays tribute to this.
Beta Was this translation helpful? Give feedback.
All reactions