@krystian2160 Can you try with a 5.4 version and see if it suffers the same problem?
Hi. I need some opinion on using laravel for website with reactjs and lumen for api.
Just a bit about myself. I'm quite good at developing sites using laravel. I checked out lumen a bit, never used it. And I've never developed any API based app.
For this next project I'll be working on, I'm thinking about using reactjs. Reason being this website needs to be intuitive and also my interest of trying it out. Another is that as I read from various people, I can use React Native to build mobile apps. It is planned for this project to later build mobile apps for this web app. Additionally good performance is a must and needs to have good response time so that it feels very quick. Now because I plan to use reactjs, most of my network calls will be api based.
Some other addional stuffs regarding the project:
With that, I would like to know...
These are all I have in my head now. Maybe missing something... or a lot of things. Please ask if need more info.
Abid left a reply on SQL Help - Get All From Left Table Regardless Of Right Table
Those who are looking for answer can be found here:
I watched some TDD videos. Understood how a class is tested in a Unit test. But most of them are just testing single class or more like testing a small component.
I'm going a begin a small project soon (Job Search based app). I want to start the app in a TDD way. So how can I begin the whole test? Exactly what tests should I do in the start?
I need a startup boost here. I hope that once I get the basic startup, I can move forward on my own.
Hey Jeffrey, I've learnt most of the basics of Git thanks to your wonderful videos. Now there are some advanced things that I still have hard time understanding how they work. They are subtree and submodules stuff. Can you make some videos of these 2 features?
Abid started a new conversation Connect To Host Machine MySQL From Inside Vagrant Box?
I'm looking for ways to connect my php projects (inside vagrant) to use host machine's MySQL connection. How can I do it?
Using Homestead if needed.
homestead's VagrantFile has these lines:
VAGRANTFILE_API_VERSION = "2" confDir = $confDir ||= File.expand_path("~/.homestead") homesteadYamlPath = confDir + "/Homestead.yaml" homesteadJsonPath = confDir + "/Homestead.json" afterScriptPath = confDir + "/after.sh" aliasesPath = confDir + "/aliases"
How can i set the $confDir variable during vagrant up? I'm using Windows OS.
Abid started a new conversation SQL Help - Get All From Left Table Regardless Of Right Table
Hi, I need help on working out this simple SQL query. I need to get all results of the left column regardless of data on the right. Could not find solution for my specific case. Here is the schema:
CREATE TABLE apis ( id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY, name VARCHAR(30) NOT NULL ); CREATE TABLE api_settings ( id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY, api_id INT(6) UNSIGNED NOT NULL, user_id INT(6) UNSIGNED NOT NULL, `key` VARCHAR(30) NOT NULL, `value` VARCHAR(30) NULL ); INSERT INTO `apis` (name) VALUES ('API 1'), ('API 2'), ('API 3'); INSERT INTO `api_settings` (api_id, user_id, `key`, `value`) VALUES (1, 1, 'api_key', 'iasduhfoasidf'), (1, 2, 'api_key', 'sd4w3gagfasd'), (2, 1, 'api_key', 'a43tfgrewgwer'), (2, 2, 'api_key', 'pasdfjopur'), (3, 1, 'api_key', '987ahw4hghfsdf');
The output I'm expecting here is this:
| api_id | name | user_id | | ------- | ------- | ------- | | 1 | API 1 | 1 | | 2 | API 2 | 1 | | 3 | API 3 | 1 | | 1 | API 1 | 2 | | 2 | API 2 | 2 | | 3 | API 3 | NULL |
The query I tried is this:
SELECT apis.id, apis.`name`, api_settings.user_id FROM apis LEFT JOIN api_settings
Any help would be appreciated. Thanks.
Abid started a new conversation How Can I Make Relations Modular For Package Development?
I'm trying to build some modular packages to simplify my workflow when trying to support multiple projects. Their are some problem I'm facing, but right now the main problem I'm having is with the Eloquent Part and making relations in a modular way.
So I took out the
App\User and placed them in my modular package
Model directory, So its new place is
Module\User\Model\User. I have another Model
UserProfile in that same place and because of it, I can put the relations out their because it is part of that same module.
However there is a
Acl module which is dependent on the
User module and has
Role model. Because of it I can add relation to the
Role model with
User model, but can't do the same in the
User model with
User module is not dependent on
Acl module. To add the relation on
Role, I have to add code in the
User and that's what I wanted to avoid. What if one of my app doesn't need
Also what happens when I start to add Blog, News, Comments etc. Do I have to add relations on the
User model for all of them? What if one of them doesn't require News module, should my news relation codes still stays in the
I really want to use Eloquent because of some of its great features when dealing with saving relation based data. If there is a simple solution on how to avoid adding tons of relations on the
User model, do please guide me. Also this is not just about
User model, it could be on any model when working with modular application (or packages in my case).
I'm a Windows User and use Sublime 3 as my development editor. I use package Sublime-PHPCS for linting php errors. All this time I've been using XAMPP where PHP is installed on my main system and I can set it's path in my editor. Now I've been thinking about getting rid of XAMPP and use Homestead or any other Vagrant Boxes to manage my development.
However I can't get how to use my Host Machine's Sublime 3 PHP linting system (Along with PHPCS, PHP-CS-FIXER etc) to work if my PHP installation is in the VM. When PHP was installed on my main machine, this wasn't an issue. But now that I want specifically use a VM for my day to day development, I need a solution of targeting the VM's PHP.
If anyone know a solution, please do let me know.