Skip to content

Instantly share code, notes, and snippets.

View obelich's full-sized avatar
:octocat:
Aprendiendo Dart + Flutter

Oscar Miguel Amezcua Estrella obelich

:octocat:
Aprendiendo Dart + Flutter
View GitHub Profile
@foreach($$$VariablePlural$ as $$$VariableSingular$)
{{ $$$VariableSingular$->$Campo$ }}
@endforeach
Route::group(['middleware' => ['auth']], function() {
$END$
});
Route::get('/$nombre$', '$ContName$Controller@$Metodo$');
protected $table = '$NombreTabla$';
public function $Nombre$()
{
return $this->morphMany('App\$Modelo$', '$NombrePoly$');
}
public function $NombrePlural$()
{
return $this->hasMany('App\Models\$Nombre$');
}
protected $fillable = [
'$Field1$',
'$Field2$'
];
public function $Nombre$()
{
return $this->belongsTo('App\Models\$Modelo$');
}
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class $Nombre$ extends Model
{
$END$
}
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class $Nombre$ extends Model
{
$END$
}