This file contains hidden or 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
| <?php | |
| namespace App\Http\Livewire; | |
| use App\Models\Tag; | |
| use App\Models\User; | |
| use Illuminate\Database\Eloquent\Builder; | |
| use Rappasoft\LaravelLivewireTables\DataTableComponent; | |
| use Rappasoft\LaravelLivewireTables\Views\Columns\BooleanColumn; | |
| use Rappasoft\LaravelLivewireTables\Views\Column; |
This file contains hidden or 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
| /* | |
| Taken from: https://gist.github.com/soufianeEL/3f8483f0f3dc9e3ec5d9 | |
| Modified by Ferri Sutanto | |
| - use promise for verifyConfirm | |
| Examples : | |
| <a href="posts/2" data-method="delete" data-token="{{csrf_token()}}"> | |
| - Or, request confirmation in the process - | |
| <a href="posts/2" data-method="delete" data-token="{{csrf_token()}}" data-confirm="Are you sure?"> |
This file contains hidden or 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
| /*-------------------------------------------------+ | |
| | Get current visitors count (whos.amung.us) | |
| +-------------------------------------------------*/ | |
| function getAmungStats($amung) { | |
| if(!isset($amung)) return false; | |
| $url = 'http://whos.amung.us/sitecount/' . $amung . '/'; | |
| $result = ''; | |
| if (function_exists('curl_init')) { | |
| $http_headers = array(); |