Wohin mit der Statistik

  • Wohin mit der Statistik ?


    Wenn jeder Customer many Projects haben kann und jedes Project eine Invoice hat.


    eine eigene Route ? mit Statistik Controller ???


    <img src="https://laraboard.io/images/smilies/emojione/2753.png" alt=":?:" title="question" class="smiley" srcset="https://laraboard.io/images/smilies/emojione/2753@2x.png 2x" height="23" id="wscSmiley_0_0">


    PHP
    Route::prefix('v1')->group(function() {
    Route::post('statistik/{year}/gesamtshow', 'StatistiksController@gesamtshow');
    Route::post('statistik/{year}/allProjects', 'StatistiksController@allprojects');
    Route::post('statistik/{year}/paidinvoices', 'StatistiksController@paidinvoices');
    });
    Code