• Cloud ready individual software
        • We develop individual cloud ready software solutions. Not only can costs be saved, but mobile working is also made possible by a Cloud solution.

        • This is what you can expect:

          • Individual software solution
          • Cloud Interfaces
          • Hosting in Germany
          • Kubernetes Cluster
        • We connect your systems
        • We develop customized interfaces that network your systems with each other. By eliminating manual maintenance, you avoid sources of error and reduce the work and data maintenance effort.

        • This is what you can expect:

          • API interfaces
          • Connection to existing systems
          • Data transmission in real time
          • Expandable at any time
        • PHP development with Laravel
        • Our experienced team builds professional web applications using Laravel, ensuring a high level of security with smooth functionality.

        • This is what you can expect:

          • For complex web projects
          • For app development
          • Modular structure
          • Easy connection to APIs and services
        • WebApps for your company
        • We develop WebApps that completely cover your needs and cater specifically to your requirements. Further development of an existing WebApp is also possible at any time.

        • This is what you can expect:

          • Advantages of WebApps
          • Work more efficiently with individual WebApps
          • WebApp technologies
          • References
        • All solutions at a glance
        • Are you still looking for inspiration or do you even already know exactly what you need? On our solutions page you are sure to find the answer you are looking for.

        • Data room
          Share and edit documents easily with selected employees. You can also request the necessary approvals with just one click.

        • Job portal
          Job advertisements are created, edited and managed centrally in one place. Publication is possible for several websites at the same time.

        • FaultManager
          The digital solution for recording, processing and evaluating faults in the supply network! Assignment of tickets simply with a click.

        • All references at a glance
        • Here you will find a selection of our completed projects in the form of a detailed reference with project information, images and feedback from our customers.

        • OPC Dusk
          We developed a modern web application for OPC to attract new customers from the eCommerce sector.

        • Alsco Service WebApp
          The WebApp we developed replaces the cleaning and repair slips on the garments.

        • Georg Hagelschuer
          We developed the GH-focus WebApp for reliable monitoring of the steam and hot water boiler systems.

  • About us

Laravel Eloquent: Auxiliary function for database debugging

Laravel Eloquent: Auxiliary function for database debugging

When working with Laravel Eloquent, database queries can become very complex and errors creep in quickly. Finding them often turns out to be complicated. Especially if you copy a code in the heat of the moment, but have not fully adapted it, you have forgotten to change a variable name or you take over existing software projects without checking them. The actual database query can quickly help here.

Example:
The schedule table contains a grown construct, the user receives the primary key of the user table. In this case, a numeric ID:

Code like this then results in SQL queries like the following:

Preparation:

To start, we need the HelperServiceProvider app (app/Providers/HelperServiceProvider.php). In this file the "Helpers" (helper functions) are registered. The HelperServiceProvider reads all files in the folder "app/Helpers" and includes them automatically.

The HelperServiceProvider must then be registered in the app. To do this, add the newly created HelperSeviceProvider to the config/app.php file in the "providers" section:

This means that these functions are available everywhere in Laravel, including in the Laravel command line artisan tinker.

Functions:

Now follows the actual helper function for debugging databases. Here you can see a code snippet which provides the functions "ddsql()" and "dumpsql()":

As you can see in the third line, we use the builder from Eloquent for the help function: (https://laravel.com/docs/8.x/eloquent). Data that was entered by mistake will receive an error message. ddsql($query->get())

After completing the above file, you can use the "ddsql()" function in your code. Here is an example of the function in use (a block of code from the page https://laravel.com/docs/8.x/eloquent#advanced-subqueries was used for this):

This code then executes the following: "Route/Command/etc. This allows you to display the endpoints in the developer tools of the web browsers via the database query as SQL. So you can better understand if and where there is an error.
The SQL can then be executed or debugged in the user database editor.

This approach offers a good starting point for turning the performance screw.

Facebook
Twitter
LinkedIn
XING
        • Cloud ready individual software
        • We develop individual cloud ready software solutions. Not only can costs be saved, but mobile working is also made possible by a Cloud solution.

        • This is what you can expect:

          • Individual software solution
          • Cloud Interfaces
          • Hosting in Germany
          • Kubernetes Cluster
        • We connect your systems
        • We develop customized interfaces that network your systems with each other. By eliminating manual maintenance, you avoid sources of error and reduce the work and data maintenance effort.

        • This is what you can expect:

          • API interfaces
          • Connection to existing systems
          • Data transmission in real time
          • Expandable at any time
        • PHP development with Laravel
        • Our experienced team builds professional web applications using Laravel, ensuring a high level of security with smooth functionality.

        • This is what you can expect:

          • For complex web projects
          • For app development
          • Modular structure
          • Easy connection to APIs and services
        • WebApps for your company
        • We develop WebApps that completely cover your needs and cater specifically to your requirements. Further development of an existing WebApp is also possible at any time.

        • This is what you can expect:

          • Advantages of WebApps
          • Work more efficiently with individual WebApps
          • WebApp technologies
          • References
        • All solutions at a glance
        • Are you still looking for inspiration or do you even already know exactly what you need? On our solutions page you are sure to find the answer you are looking for.

        • Data room
          Share and edit documents easily with selected employees. You can also request the necessary approvals with just one click.

        • Job portal
          Job advertisements are created, edited and managed centrally in one place. Publication is possible for several websites at the same time.

        • FaultManager
          The digital solution for recording, processing and evaluating faults in the supply network! Assignment of tickets simply with a click.

        • All references at a glance
        • Here you will find a selection of our completed projects in the form of a detailed reference with project information, images and feedback from our customers.

        • OPC Dusk
          We developed a modern web application for OPC to attract new customers from the eCommerce sector.

        • Alsco Service WebApp
          The WebApp we developed replaces the cleaning and repair slips on the garments.

        • Georg Hagelschuer
          We developed the GH-focus WebApp for reliable monitoring of the steam and hot water boiler systems.

  • About us