-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from Hi-Folks/develop
v0.2.2
- Loading branch information
Showing
20 changed files
with
1,385 additions
and
785 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,4 @@ public/js/app.js | |
public/mix-manifest.json | ||
/.env.prod | ||
/Makefile.param.prod | ||
/public/google*.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
namespace App\Http\Livewire\Dashboard; | ||
|
||
use App\Models\Configuration; | ||
use App\Models\LogConfiguration; | ||
use Illuminate\Support\Facades\DB; | ||
use Livewire\Component; | ||
|
||
class Daily extends Component | ||
{ | ||
public $daily; | ||
|
||
public function mount() | ||
{ | ||
$this->daily = LogConfiguration::select(array( | ||
DB::raw('DATE(`created_at`) as `date`'), | ||
DB::raw('count(*) as `count`') | ||
)) | ||
->groupBy('date') | ||
->orderBy('date', 'DESC') // or ASC | ||
->pluck('count', 'date'); | ||
} | ||
public function render() | ||
{ | ||
return view('livewire.dashboard.daily'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
namespace App\Models; | ||
|
||
use Illuminate\Database\Eloquent\Factories\HasFactory; | ||
use Illuminate\Database\Eloquent\Model; | ||
|
||
class LogConfiguration extends Model | ||
{ | ||
use HasFactory; | ||
|
||
protected $fillable = ['code']; | ||
} |
Oops, something went wrong.