Category: PHP

  • Myhosttech and Wonderland

    URL build example: “myhosttech.test/admin-inventory/systems” The text after the first “/” so “admin-inventory” is the controller so in this instance “AdminInventoryController.php”.The text after the second “/” so “systems” is the function inside said controller, though here to note is that it might be a shortened version since in this instance the function is “systemsAction”. Myhosttech Framework: LaravelConfig-File: .env…

    Zum Beitrag

    //

  • Eloquent Relationships

    One to One One record “owns” exactly one other record. Examples How it works Here’s an example for One to One relationship: HereLook at the Employer <-> User relationship and just navigate to the corresponding migrations to see how the Database is built up. One to Many One record has many dependents. Examples How it…

    Zum Beitrag

    //

  • Plain PHP vs Laravel

    For more information about Laravel or PHP you can look at these: I worked with both plain PHP and Laravel while granted I’m still pretty new to either there are already some noticeable differences. So let’s go over them. So firstly you can’t use Laravel without knowledge of PHP so to start you should use…

    Zum Beitrag

    //