<?php
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
public function run()
{
$this->call(RolesTableSeeder::class);
}
}
$('#toggle-btn').click(function(e) {
$('.menu nav').slideToggle('fast');
});
$('section, header, .menu nav li ').click(function(){
if ($(window).width()<910){
$('.menu nav').slideUp('fast');
}
});
$('.menu nav').mouseleave(function(){
if ($(window).width()<910){
$('.menu nav').slideUp('fast');
}
});
<div id="id24"»>текст</div>
<div id="id1" class="myClass"»>текст1</div>
<div id="id2" class="myClass"»>текст2</div>
...
<div id="id24" class="myClass"»>текст24</div>
<style>
.myClass {display:none;}
</style>
<script>
function showBlock(val){
x = document.getElementsByClassName('myClass');
for (let i = 0; i < x.length; i++) {
x[i].style.display='none';
}
document.getElementById('id'+val).style.display='block';
}
</script>
<template>
<ul class="aside-list" id="firstLevelCategories">
<li class="aside-list__item" v-for="item in items">
<img :src="{{item.img}}" :alt="{item.alt}}">
<router-link :to="{{item.link}} class="aside-list__link">{{ item.message }}</a></li>
</ul>
</template>
<script>
export default {
data() {
return {
items: [
item1: {
img: '',
alt:'',
link:'/..'
}
]
}
}
}
</script>
public function users(){
return $this->hasMany('App\User', 'user_id','id');
}