GithubHelp home page GithubHelp logo

mostafa6765 / vuetable-2-with-laravel-5.4 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ratiw/vuetable-2-with-laravel-5.4

0.0 1.0 0.0 746 KB

Sample project using Vuetable-2 in Laravel 5.4 and Laravel-Mix

PHP 3.96% ApacheConf 0.03% JavaScript 94.70% Vue 0.45% HTML 0.86%

vuetable-2-with-laravel-5.4's Introduction

Sample project using Vuetable-2 with Laravel 5.4 and Laravel Mix

Trying this sample project

  • clone the repo to your local machine
  • cd into the directory
  • install laravel dependency packages using composer install
  • install client-side javascript packages dependency by npm install
  • run the project using php artisan serve or whatever appropriate in your machine setup.

You should see something like this.

image

Steps to use Vuetable-2 in your Laravel 5.4 project

  • create laravel 5.4 project

      laravel new vuetable-l54
    
  • go into the project directory and install node packages

      npm install
    
  • generate authentication files

      php artisan make:auth
    
  • replace welcome.blade.php to extend from layouts.app

      @extends('layouts.app')
    
      @section('content')
        <div class="container">
            <my-vuetable></my-vuetable>
        </div>
      @endsection
  • install additional babel plugins

      npm install babel-plugin-transform-runtime babel-preset-stage-2 --save-dev
    
  • install vuetable-2

      npm install vuetable-2 --save-dev
    
  • create your Vue component in resources\assets\js\components

  • register the component in resources\assets\js\app.js

      Vue.component('my-vuetable', require('./components/MyVuetable.vue'));
  • compile using Laravel-Mix by running

      npm run watch
    

vuetable-2-with-laravel-5.4's People

Contributors

ratiw avatar

Watchers

Mostafa Kamal avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.