vendredi 21 février 2020

nothing show up in laravel

I want to make a web application that uses a laravel framework and vue.js after I have made the necessary settings and added the framework, and linked the two files, and run the browser noting show up.

home.vue

<template>
    <div>

        <h1>zakaria sassi</h1>
    </div>
</template>

welcome.blade.php

<!DOCTYPE html>
<html lang="">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">

        <title>Laravel</title>

        <!-- Fonts -->
        <link href="https://fonts.googleapis.com/css?family=Nunito:200,600" rel="stylesheet">


    </head>
    <body>
       <div id="app">
       <home></home>
       </div>

       <script src="" defer ></script>
    </body>
</html>

app.js

require('./bootstrap');

window.Vue = require('vue');


Vue.component(
'home',
  require('./components/home.vue'));


const app = new Vue({
  el: '#app',
  router,
});

webpack.mix.js

const mix = require('laravel-mix');


mix.js('resources/js/app.js', 'public/js')
   .sass('resources/sass/app.scss', 'public/css');


via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire