- Laravel Version: 5.8.*
- PHP Version: 7.3.3
- Database Driver & Version: mysqlnd 5.0.12-dev
-- XAMPP Control Panel v3.2.3
-- Windows 10
-- Jetbrains PhpStorm
Description:
jQueryUI Datepicker works fine when ran outside of Laravel application. Here is the code: https://jqueryui.com/datepicker/ Implementing the same code from within any laravel blade view returns a "datepicker" not defined in the developers console(browser).
Commenting out the line:
{{-- <script src="{{ asset('js/app.js') }}" defer></script>--}}
in the app.blade.php file and the jquery date picker works.
Steps To Reproduce:
- Install Laravel 5.8 using the development environment stated in this message.
- php artisan make:auth
- Create a blade view with an input form for date.
- Add the code from https://jqueryui.com/datepicker/ to the blade view and/or app.blade.php.
- Run your blade view and check console - jQueryUI values are not being passed.
- Comment out the js/app.js as previously stated in this message.
- jQueryUI datepicker calendar will now work.
-- XAMPP Control Panel v3.2.3
-- Windows 10
-- Jetbrains PhpStorm
Description:
jQueryUI Datepicker works fine when ran outside of Laravel application. Here is the code: https://jqueryui.com/datepicker/ Implementing the same code from within any laravel blade view returns a "datepicker" not defined in the developers console(browser).
Commenting out the line:
{{-- <script src="{{ asset('js/app.js') }}" defer></script>--}}in the app.blade.php file and the jquery date picker works.
Steps To Reproduce: