Giter VIP home page Giter VIP logo

laravel-livewire-routes's People

Contributors

bastinald 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

Watchers

 avatar  avatar

laravel-livewire-routes's Issues

how to include?

Should this be automagically registered as a service provider in laravel 8 and using composer to install the package? Right now when I simply install it and try to use it within a livewire component, I am getting an exception that the Route class is not found. Sorry, I know I am missing something basic.

Issue with route and directory separator

Hello,

First thanks for all the work you are doing here.
I tried to play a little bit with your ui repository, and it worked well. After I had discovered that the project have been archived, I tried to update my local work ... and I got an an error with the route bundle.

Linked to your fix 41ce866

Indeed, you are playing with paths & realpath function, and then this is sensible about windows/linux directory separators.
Going back to the DIRECTORY_SEPARATOR fix the issue.

        $component = $namespace . str_replace(
                ['/', '.php'],
                ['\\', ''],
                Str::after($component->getRealPath(), realpath(app_path()) . DIRECTORY_SEPARATOR)
            );

Issue:
Install fresh laravel, and install bastinald/laravel-livewire-ui. No route found (no Welcome, nor Home)
System: Windows & XAMPP

Fix:
Use DIRECTORY_SEPARATOR (rollback).

Possible to use with vanilla components?

Is it possible to use this with vanilla components? Trying to reduce the number of livewire components when livewire isnt needed in order to reduce the number of nested livewire component issues that I have to overcome. I do though love being able to do my routes right in the component.

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.