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
<script> | |
import navigationMixin from '@/mixins/navigation'; | |
export default { | |
name: "guest", | |
mixins: [navigationMixin], | |
} | |
</script> |
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
Hola {{ $name }} |
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\Controllers; | |
class HomeController extends BaseController | |
{ | |
public function index () { | |
return $this->blade->render('home', ['name' => 'Cursosdesarrolloweb']); | |
} | |
} |
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\Controllers; | |
use CodeIgniter\Controller; | |
use Jenssegers\Blade\Blade; | |
class BaseController extends Controller | |
{ | |
protected $blade; | |
public function __construct () { |
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
<template> | |
<div class="cmp" v-if="id"> | |
{{ id }} | |
</div> | |
</template> | |
<script> | |
import {createNamespacedHelpers} from 'vuex'; | |
const { mapActions, mapState } = createNamespacedHelpers( | |
"users" |
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
watch: { | |
'component_data.dato2': function (newVal, oldVal) { | |
// DO STUFF | |
} | |
}, |
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
data () { | |
return { | |
component_data: { | |
dato1: 1, | |
dato2: 2, | |
dato3: 3 | |
}, | |
} | |
} |
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 coursesJson () { | |
if(request()->ajax()) { | |
$vueTables = new EloquentVueTables; | |
/*************************************OBTENEMOS LA FK Y LA RELACIÓN*************************************/ | |
$data = $vueTables->get(new Course, ['courses.id', 'name', 'status', 'teacher_id'], ['teacher']); | |
return response()->json($data); | |
} | |
return abort(401); |
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\Traits; | |
/** | |
* Trait Encryptable | |
* @package App\Traits | |
*/ | |
trait Encryptable | |
{ |
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
<template> | |
<div> | |
<select v-model="selected_hour"> | |
<option v-for="(value, key) in hours" :value="value">{{ value }}</option> | |
</select> | |
</div> | |
</template> | |
<script> | |
export defaul { |