Git Product home page Git Product logo

tinre-core's People

Contributors

paulprisacaru avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

tinre-core's Issues

Where statement not case sensitive

$url = Url::where(['path' => $path, 'active' => 1])->first();

Just so you know, Laravel where statement is not case sensitive. Your 'path' column in the migration is also not '_bin' collation therefore you can get bad redirects.
Example:
https://tin.re/fVuffe ( goes to youtube ) -> this is the link your platform generated
https://tin.re/fVuffE ( also goes to youtube ) -> this should give me a 404 since it's not the link I generated

Solution:
Either apply ->collation('utf8_bin') to the path column in the collation to make the where always case sensitive when looking on this column or change this where statement to something like:
Url::whereRaw("BINARY `path`= ?",[$path])->where( 'active' => 1)->first();
to make only this where statement case sensitive.

Module not found: Error: Can't resolve '../pages/users/index

please capitalize that two vue file names:

import UsersIndex from '../pages/users/index'

to import UsersIndex from '../pages/users/Index'

import UsersShow from '../pages/users/show'

to import UsersIndex from '../pages/users/Show'
it show error in some npm version.

ERROR in ./resources/js/router/routes.js Module not found: Error: Can't resolve '../pages/users/index' in '/var/www/vhosts/rwangroup.com/new/vendor/devpri/tinre-core/resources/js/router' @ ./resources/js/router/routes.js 4:0-46 18:13-23 @ ./resources/js/router/index.js @ ./resources/js/dashboard.js @ multi ./resources/js/dashboard.js

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.