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 | |
| /* | |
| |-------------------------------------------------------------------------- | |
| | Web Routes | |
| |-------------------------------------------------------------------------- | |
| | | |
| | Here is where you can register web routes for your application. These | |
| | routes are loaded by the RouteServiceProvider within a group which | |
| | contains the "web" middleware group. Now create something great! |
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; | |
| use Illuminate\Database\Eloquent\Model; | |
| class Post extends Model | |
| { | |
| public static function findBySlug($slug) | |
| { |
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; | |
| class Image | |
| { | |
| protected $path; | |
| public function __construct($path) | |
| { |
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\Providers; | |
| use Illuminate\Support\Facades\Schema; | |
| use Illuminate\Support\ServiceProvider; | |
| class AppServiceProvider extends ServiceProvider | |
| { | |
| /** |
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 | |
| // Before | |
| public function getIDsForClient() | |
| { | |
| $sql = "SELECT DISTINCT FilingID FROM Snapshot1094C WHERE ClientID = ?"; | |
| $params = [$this->clientID]; | |
| $stmt = sqlsrv_query($this->mssqli, $sql, $params); | |
| $ids = []; |
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 Something { | |
| const example = 'test'; | |
| } | |
| namespace Another { | |
| const example = 'anothervalue'; | |
| } |
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
| // look in .env file for definitions | |
| define("HOST", env('DB_HOST')); // The host you want to connect to. | |
| define("USER", env('DB_USER')); // The database username. | |
| define("PASSWORD", env('DB_PASSWORD')); // The database password. | |
| define("DATABASE", env('DB_DATABASE')); // The database name. | |
| define("SECURE", env('DB_SECURE')); // The database name. | |
| define('FTPHOST', env('SFTP_HOST')); | |
| define('FTPPORT', env('SFTP_PORT')); | |
| define('FTPUSER', env('SFTP_USER')); |
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 | |
| function dump() | |
| { | |
| array_map('pre', func_get_args()); | |
| } | |
| function pre($to_dump) | |
| { | |
| echo "<pre>"; |
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 | |
| public function get($topic, $specific = null, $param = null) | |
| { | |
| if (isset($this->config[$topic])) { | |
| $value = $this->config[$topic]; | |
| } | |
| if (! is_null($specific) && isset($value[$specific])) { | |
| $value = $value[$specific]; |