Giter Club home page Giter Club logo

laravue-core's People

Contributors

dependabot[bot] avatar imgbotapp avatar ravenkaisar avatar tuandm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

laravue-core's Issues

Can't install Laravue-core in a bare Laravel project

Hi.
I'm trying to setup a dev environment for laravue in macOS 10.14.
I've followed these steps:
$ composer create-project laravel/laravel LaravueCoreTest 4.2.*
$ cd LaravueCoreTest
$ composer require tuandm/laravue-core

But I get this error

Using version ^0.3.4 for tuandm/laravue-core
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for tuandm/laravue-core ^0.3.4 -> satisfiable by tuandm/laravue-core[0.3.4].
    - tuandm/laravue-core 0.3.4 requires tymon/jwt-auth ^1.0 -> satisfiable by tymon/jwt-auth[1.0.0-alpha.2, 1.0.0-alpha.3, 1.0.0-alpha1, 1.0.0-beta.1, 1.0.0-beta.2, 1.0.0-beta.3, 1.0.0-rc.1, 1.0.0-rc.2, 1.0.0-rc.3, 1.0.0-rc.4, 1.0.0-rc.4.1, 1.0.0-rc.5, 1.0.x-dev] but these conflict with your requirements or minimum-stability.


Installation failed, reverting ./composer.json to its original content.

This is the composer.json created by Laravel's cli

{
        "name": "laravel/laravel",
        "description": "The Laravel Framework.",
        "keywords": ["framework", "laravel"],
        "license": "MIT",
        "type": "project",
        "require": {
                "laravel/framework": "4.2.*"
        },
        "autoload": {
                "classmap": [
                        "app/commands",
                        "app/controllers",
                        "app/models",
                        "app/database/migrations",
                        "app/database/seeds",
                        "app/tests/TestCase.php"
                ]
        },
        "scripts": {
                "post-install-cmd": [
                        "php artisan clear-compiled",
                        "php artisan optimize"
                ],
                "post-update-cmd": [
                        "php artisan clear-compiled",
                        "php artisan optimize"
                ],
                "post-create-project-cmd": [
                        "php artisan key:generate"
                ]
        },
        "config": {
                "preferred-install": "dist"
        },
        "minimum-stability": "stable"
}

Thanks

Blank White Screen

After adding laravue-core to my already existing laravel application. Launching app on browser shows only white screen even when debug mode is set to true. No error message just blank white screen.

The route is not specified

Route::get('/{any}', 'LaravueController@index')->where('any', '.*');

Why use {any}?
Is that means no matter what the route is, the background page is displayed?

LARAVEL 6

is this compatible with laravel 6?

'eventMap' has already been declared

Everytime I refresh my Pages with Tables, Forms etc., I get this Error:

VM1848 dom-testing-library-event.js:1 Uncaught SyntaxError: Identifier 'eventMap' has already been declared
    at VM1847 dom-testing-library-event.js:1

Even when I install a fresh laravue core installation in a fresh laravel project, this happens.

Any ideas how to get rid of it?

No element-icons font showing

Hi, I installed it on a project that i'm doing but the icons of the menubar dropdown isn't showing.
I checked the styles index file but is the same as the repository, also checked the blades and webpack.mix.js to check that the fonts will load. But the icons does not show, only shows the svg icons. What I can do?
Captura de Pantalla 2019-07-20 a la(s) 17 25 46

How are the roles and permissions set with the navbar?

Hi,

I love your script but I am having a problem understanding(based on your doc) where in the navbar the roles are set.
When I go to the index.js of the router file, I see no mention of roles but the menus are either showing or not showing based on the selected role. So somewhere, this is set, where? I cannot work it out.

My second problem is with the permissions of:
Element ui
Permission
Components
Charts
Nested routes
Table
Administrator
Theme
Clipboard
Excel
Zip
Pdf
I18n

I can see a popup menu showing me all of the above but cannot work out where this popup is taking this information from apart from the database.
Do we need to manually input the permissions in the database?

Thank you.

error npm install

ENOENT: no such file or directory, open '/Users/newowner/laravue/node_modules/.staging/@types/jquery-fc08fbbe/JQueryStatic.d.ts'
npm ERR! Error while executing:

Horizontal Menu

Do you know if there could be a horizontal menu instead of a sidebar menu?

laravue-core link in laravue.dev doc tip box going to wrong url

From the documentation under getting started Tip Box link is wrong

Suggestion: You should try laravue-core package if you want to integrate Laravue to your current Laravel projects. Laravue itself will be a good guideline for you.

laravue-core link is going to wrong url.

No element-icons font showing

Hi,
Installed a fresh Laravel project and added the laravue-core as described.
Tried both the automatic and Manuel.

Both installations is missing the Element-UI Icons.
I can't see where the problem is, as it looks like the icons are included in the build.

The full Laravue project, works fine with the Element Icons, but not when I add the laravue-core to a Laravel project.

Icons not showing

Hi I can see there is an update you have pushed to fix the icons issue. Could you please explain what was changed. Thanks

Login: Request failed with status code 500

The POST login works and returns a success message. But even with the success login in the console, i get the 500 error message and then this

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'api_token' in 'where clause' (SQL: select * from users where api_token = {token} limit 1)

Can't Login after setup: Property "type" must be accessed

Hello!
Thank you for this awesome project - but i have a problem with the implementation of the framework in an existing Laravel Application. The Login page itself is working, but i can't login in the dashboard because of this errors:

image

Anybody an idea why this is happening?

Vue Version is: 2.5.17

Login: Request failed with status code 500

Hello,

I have this error :

[2019-09-08 02:56:52] local.ERROR: Undefined index: provider {"exception":"[object] (ErrorException(code: 0): Undefined index: provider at D:\\test\\laravelbuefy\\laravue\\laravue3\\vendor\\tymon\\jwt-auth\\src\\Providers\\AbstractServiceProvider.php:101) [stacktrace] #0 D:\\test\\laravelbuefy\\laravue\\laravue3\\vendor\\tymon\\jwt-auth\\src\\Providers\\AbstractServiceProvider.php(101): Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(8, 'Undefined index...', 'D:\\\\test\\\\laravel...', 101, Array) #1 D:\\test\\laravelbuefy\\laravue\\laravue3\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\AuthManager.php(111): Tymon\\JWTAuth\\Providers\\AbstractServiceProvider->Tymon\\JWTAuth\\Providers\\{closure}(Object(Illuminate\\Foundation\\Application), 'api', Array) #2 D:\\test\\laravelbuefy\\laravue\\laravue3\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\AuthManager.php(88): Illuminate\\Auth\\AuthManager->callCustomCreator('api', Array) #3 D:\\test\\laravelbuefy\\laravue\\laravue3\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\AuthManager.php(68): Illuminate\\Auth\\AuthManager->resolve('api') #4 D:\\test\\laravelbuefy\\laravue\\laravue3\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\AuthManager.php(54): Illuminate\\Auth\\AuthManager->guard('api') #5 [internal function]: Illuminate\\Auth\\AuthManager->Illuminate\\Auth\\{closure}(NULL) #6 D:\\test\\laravelbuefy\\laravue\\laravue3\\vendor\\laravel\\framework\\src\\Illuminate\\Auth\\AuthServiceProvider.php(84): call_user_func(Object(Closure), NULL) #7 [internal function]: Illuminate\\Auth\\AuthServiceProvider->Illuminate\\Auth\\{closure}(NULL) #8 D:\\test\\laravelbuefy\\laravue\\laravue3\\vendor\\laravel\\framework\\src\\Illuminate\\Http\\Request.php(517): call_user_func(Object(Closure), NULL) #9 D:\\test\\laravelbuefy\\laravue\\laravue3\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(96): Illuminate\\Http\\Request->user() #10 D:\\test\\laravelbuefy\\laravue\\laravue3\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Middleware\\ThrottleRequests.php(48): Illuminate\\Routing\\Middleware\\ThrottleRequests->resolveRequestSignature(Object(Illuminate\\Http\\Request)) #11 D:\\test\\laravelbuefy\\laravue\\laravue3\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(163): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), '60', '1') #12 D:\\test\\laravelbuefy\\laravue\\laravue3\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) #13 D:\\test\\laravelbuefy\\laravue\\laravue3\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(104): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request)) #14 D:\\test\\laravelbuefy\\laravue\\laravue3\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(682): Illuminate\\Pipeline\\Pipeline->then(Object(Closure)) #15 D:\\test\\laravelbuefy\\laravue\\laravue3\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(657): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request)) #16 D:\\test\\laravelbuefy\\laravue\\laravue3\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(623): Illuminate\\Routing\\Router->runRoute(Object(Illuminate\\Http\\Request), Object(Illuminate\\Routing\\Route)) #17 D:\\test\\laravelbuefy\\laravue\\laravue3\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Router.php(612): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request)) #18 D:\\test\\laravelbuefy\\laravue\\laravue3\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(176): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request)) #19 D:\\test\\laravelbuefy\\laravue\\laravue3\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Pipeline.php(30): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request)) #20 D:\\test\\laravelbuefy\\laravue\\laravue3\\vendor\\fideloper\\proxy\\src\\TrustProxies.php(57): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request)) #21 D:\\test\\laravelbuefy\\laravue\\laravue3\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(163): Fideloper\\Proxy\\TrustProxies->handle(Object(Illuminate\\Http\\Request), Object(Closure)) #22 D:\\test\\laravelbuefy\\laravue\\laravue3\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) #23 D:\\test\\laravelbuefy\\laravue\\laravue3\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest.php(21): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request)) #24 D:\\test\\laravelbuefy\\laravue\\laravue3\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(163): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure)) #25 D:\\test\\laravelbuefy\\laravue\\laravue3\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) #26 D:\\test\\laravelbuefy\\laravue\\laravue3\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest.php(21): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request)) #27 D:\\test\\laravelbuefy\\laravue\\laravue3\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(163): Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest->handle(Object(Illuminate\\Http\\Request), Object(Closure)) #28 D:\\test\\laravelbuefy\\laravue\\laravue3\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) #29 D:\\test\\laravelbuefy\\laravue\\laravue3\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize.php(27): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request)) #30 D:\\test\\laravelbuefy\\laravue\\laravue3\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(163): Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize->handle(Object(Illuminate\\Http\\Request), Object(Closure)) #31 D:\\test\\laravelbuefy\\laravue\\laravue3\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) #32 D:\\test\\laravelbuefy\\laravue\\laravue3\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Middleware\\CheckForMaintenanceMode.php(62): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request)) #33 D:\\test\\laravelbuefy\\laravue\\laravue3\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(163): Illuminate\\Foundation\\Http\\Middleware\\CheckForMaintenanceMode->handle(Object(Illuminate\\Http\\Request), Object(Closure)) #34 D:\\test\\laravelbuefy\\laravue\\laravue3\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Pipeline.php(53): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request)) #35 D:\\test\\laravelbuefy\\laravue\\laravue3\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(104): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request)) #36 D:\\test\\laravelbuefy\\laravue\\laravue3\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(151): Illuminate\\Pipeline\\Pipeline->then(Object(Closure)) #37 D:\\test\\laravelbuefy\\laravue\\laravue3\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Http\\Kernel.php(116): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request)) #38 D:\\test\\laravelbuefy\\laravue\\laravue3\\public\\index.php(55): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request)) #39 D:\\test\\laravelbuefy\\laravue\\laravue3\\server.php(21): require_once('D:\\\\test\\\\laravel...') #40 {main} "}

I have configured correctly : config/auth.php

But don't work.

Can you help me please ?

Capture

Thanks

api routes

How or Where i can write my own api routes to communicate with my controllers, cuz it works only if i write them in this file vendor\tuandm\laravue-core\src\routes\laravue.php

how can i use laravel passport instead of jwt

i am able to athenticate using my api and get the toke however i am confuse where i need to change so it can read my json repsonse whixh has the token, how are the routes guarded?

app.js is too big

When i was run
npm run watch-poll
I noticed that the app.js file is too big(7.4M) even in develop and it make refresh browser so slow.
I don't think it's normal and my webpack.mix.js is:

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

function resolve(dir) {
   return path.join(__dirname, '/resources/vendor/laravue', dir);
}

Mix.listen('configReady', (webpackConfig) => {
   // Add "svg" to image loader test
   let imageLoaderConfig = webpackConfig.module.rules.find(rule => String(rule.test) === String(/(\.(png|jpe?g|gif|webp)$|^((?!font).)*\.svg$)/));
   imageLoaderConfig.exclude = resolve('icons');
})

mix.webpackConfig({
   resolve: {
      extensions: ['.js', '.vue', '.json'],
      alias: {
         'vue$': 'vue/dist/vue.esm.js',
         '@': __dirname + '/resources/vendor/laravue'
      },
   },
   module: {
      rules: [
         {
            test: /\.svg$/,
            loader: 'svg-sprite-loader',
            include: [resolve('icons')],
            options: {
               symbolId: 'icon-[name]'
            }
         },
      ],
   }
});

/*
 |--------------------------------------------------------------------------
 | Mix Asset Management
 |--------------------------------------------------------------------------
 |
 | Mix provides a clean, fluent API for defining some Webpack build steps
 | for your Laravel application. By default, we are compiling the Sass
 | file for the application as well as bundling up all the JS files.
 |
 */

mix.js('resources/vendor/laravue/app.js', 'public/js')
   // .extract(['vue', 'axios', 'vuex', 'vue-router', 'vue-i18n', 'element-ui'])
   .options({
      processCssUrls: false
   })
   .sass('resources/vendor/laravue/styles/index.scss', 'public/css');
console.log(mix.inProduction())
if (mix.inProduction()) {
   mix.version();
} else {
   // Development settings
   mix.sourceMaps()
      .webpackConfig({
         devtool: 'cheap-eval-source-map' // Fastest for development
      });
}

image

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.