Skip to content

Instantly share code, notes, and snippets.

View allysonsilva's full-sized avatar
🌎
Working from anywhere

Alyson Silva allysonsilva

🌎
Working from anywhere
View GitHub Profile
<?php
Blade::directive('route', function ($expression) {
return '<?php route(' . $expression . '); ?>';
});
@calebporzio
calebporzio / HasUuid.php
Created July 5, 2018 17:36
A little trait to add to models that will have Uuids
<?php
// Example usage in a model:
class ExampleModel extends Model
{
use HasUuid;
protected $primaryKey = 'uuid';