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
<?php | |
/** | |
* @author zuxbrt | |
*/ | |
namespace App\Handlers; | |
use Exception; | |
class CSVEncoder |
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
<?php | |
session_start(); | |
// before serving, make sure phpspreadsheet library is added to vendor | |
// --- composer require phpoffice/phpspreadsheet --- | |
// usage: php -S localhost:8000 excelexport.php | |
require 'vendor/autoload.php'; | |
use PhpOffice\PhpSpreadsheet\Spreadsheet; |
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
<?php | |
namespace App; | |
use Illuminate\Database\Eloquent\Model; | |
class Service extends Model | |
{ | |
protected $table = 'vehicles'; |
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
<?php | |
// composer json | |
// "php": "^7.3|^8.0", | |
// "laravel/framework": "^8.75" | |
namespace App\Helpers; | |
class Pagination | |
{ |
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
<?php | |
// composer json | |
// "php": "^7.3|^8.0", | |
// "laravel/framework": "^8.75" | |
class Search | |
{ | |
public $model; |