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 | |
include_once 'conf.php'; | |
$row = ''; | |
$link = getConnection(); | |
$page = 1; | |
$pageinlist = 2; | |
$status = "ASC"; |
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 | |
/** | |
* Returns a summary of thep rovided text | |
* @param [type] $text $text to be summarized | |
* @param integer $length lenght in chars to keep | |
* @return [type] summarized text | |
*/ | |
function summary($text, $length = 200) | |
{ |
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\Console\Commands; | |
use Illuminate\Console\Command; | |
use Excel; | |
use Storage; | |
class ImportContacts extends Command | |
{ | |
public $contact_imported = 0; | |
public $contact_not_imported = 0; | |
/** |
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\Helpers; | |
class EmojiHelper | |
{ | |
const SEEK_LEFT_DELIMITER = 0x00; | |
const SEEK_RIGHT_DELIMITER= 0x01; | |
protected $emoji = array( | |
//People | |
"100", | |
"bowtie", |
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 Orchid\Console\Commands; | |
use Illuminate\Console\Command; | |
use Illuminate\Database\QueryException; | |
use Orchid\Core\Models\User; | |
use Orchid\Kernel\Dashboard; | |
class CreateAdminCommand extends Command | |
{ | |
/** | |
* The console command name. |
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 | |
// migrations | |
Schema::create('subscriptions', function ($table) { | |
$table->increments('id'); | |
$table->integer('user_id'); | |
$table->string('name'); | |
$table->string('stripe_id'); | |
$table->string('stripe_plan'); |
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\Helpers; | |
use Intervention\Image\Facades\Image; | |
use Symfony\Component\HttpFoundation\File\UploadedFile; | |
use Config; | |
/** | |
* Class ImageHelper | |
* @package App\Helpers | |
*/ | |
class ImageHelper |
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\Helpers; | |
/** | |
* Class StringHelper | |
* @package App\Helpers | |
*/ | |
class StringHelper | |
{ | |
/** | |
* Replaces all special characters with underscores |
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 | |
/** | |
* Execute the console command. | |
* | |
* @return mixed | |
*/ | |
public function handle() | |
{ | |
// Get single Parameters |
OlderNewer