Head over the to Github repository for the TestDrive document
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 Carbon\Carbon; | |
| use Illuminate\Database\Eloquent\Model; | |
| class User extends Model | |
| { | |
| /** |
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\Middleware; | |
| use Closure; | |
| /** | |
| * Reads the current version of the app into an APP_VERSION variable by reading | |
| * the applications Node JS package.json file. | |
| * |
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 | |
| // Only you need to add in your controller. | |
| public function bladeCompile($value, array $args = array()) | |
| { | |
| $generated = \Blade::compileString($value); | |
| ob_start() and extract($args, EXTR_SKIP); | |
| // We'll include the view contents for parsing within a catcher | |
| // so we can avoid any WSOD errors. If an exception occurs we |
####Rets Rabbit http://www.retsrabbit.com
Rets Rabbit removes the nightmare of importing thousands of real estate listings and photos from RETS or ListHub and gives you an easy to use import and Web API server so you can focus on building your listing search powered website or app.
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 // app/Notifications/InvoicePaid.php | |
| namespace App\Notifications; | |
| use Illuminate\Bus\Queueable; | |
| use Illuminate\Notifications\Notification; | |
| use Illuminate\Contracts\Queue\ShouldQueue; | |
| use Illuminate\Notifications\Messages\MailMessage; | |
| use Laravel\Cashier\Invoice; |
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 | |
| /** | |
| * VentureApp | |
| * https://www.ventureapp.com/ | |
| * email: [email protected] | |
| */ | |
| namespace App\Helpers; | |
| class vaHelper |
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 | |
| $sites = [ | |
| 'http://www.google.com/', | |
| 'http://www.facebook.com/', | |
| 'http://www.youtube.com/', | |
| 'http://www.yahoo.com/', | |
| 'http://www.live.com/', | |
| 'http://www.wikipedia.org/', | |
| 'http://www.baidu.com/', |
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
| error: function (request) { | |
| // Validation error would return 422 header | |
| if (request.status == 422) { | |
| // Parser the json response expected | |
| var $errors = $.parseJSON(request.responseText); | |
| // Bootstrap alert scafolding for error | |
| var errorsHtml = '<div class="alert alert-danger alert-dismissible"><button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button><h4><i class="icon fa fa-times"></i>Opps! Seems like you didn\'t fill the form properly...</h4><ul>'; | |
| // The root nodes are field names, with an array of error messages | |
| $.each( $errors, function( key, value ) { | |
| // We loop through the error to see if there are multiple error associated with the field |
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
| /** | |
| * Create a Symfony response for the given exception. | |
| * | |
| * @param \Exception $e | |
| * @return mixed | |
| */ | |
| protected function convertExceptionToResponse(Exception $e) | |
| { | |
| if (config('app.debug')) { | |
| $whoops = new \Whoops\Run; |