Can you show the exact html code that isnt working?
Tailwind grid col-span-x not working? Update Tailwind?
Hi folks, just wondering if anyone else is having this issue.
I'm running Laravel 8 and am working in development (thanks to @sinnbeck for helping on a previous question) and all classes are working fine but I can't get a grid with a child div which uses col-span-x (x = number) to actually work. The grid is the correct number of columns but when I apply the col-span-x nothing happens.
I have a snippet which I tested outside of Laravel and it works fine.
That test was using Tailwind v2.2.19 but in my package.json file its set to use "tailwindcss": "^2.0.2". How do I update Laravel's version of Tailwind to v2.2.19? FYI my composer.json and package.json are below.
Thanks for any advice!
package.json
{
"private": true,
"scripts": {
"dev": "npm run development",
"development": "mix",
"watch": "mix watch",
"watch-poll": "mix watch -- --watch-options-poll=1000",
"hot": "mix watch --hot",
"prod": "npm run production",
"production": "mix --production"
},
"devDependencies": {
"@tailwindcss/aspect-ratio": "^0.4.0",
"@tailwindcss/forms": "^0.2.1",
"alpinejs": "^2.7.3",
"autoprefixer": "^10.1.0",
"axios": "^0.21",
"browser-sync": "^2.27.5",
"browser-sync-webpack-plugin": "^2.3.0",
"laravel-mix": "^6.0.6",
"lodash": "^4.17.19",
"postcss": "^8.2.1",
"postcss-import": "^12.0.1",
"resolve-url-loader": "^4.0.0",
"sass": "^1.37.5",
"sass-loader": "^12.1.0",
"tailwindcss": "^2.0.2"
},
"dependencies": {
"@fortawesome/fontawesome-free": "^5.15.4",
"daisyui": "^1.11.1",
"tailwind-scrollbar-hide": "^1.1.7"
}
}
composer.json
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"php": "^7.3|^8.0",
"barryvdh/laravel-dompdf": "^0.9.0",
"fruitcake/laravel-cors": "^2.0",
"guzzlehttp/guzzle": "^7.0.1",
"intervention/image": "^2.6",
"juliomotol/laravel-auth-timeout": "^3.0",
"laravel/framework": "^8.54",
"laravel/tinker": "^2.5",
"spatie/laravel-honeypot": "^3.0",
"spatie/laravel-permission": "^4.2",
"spatie/laravel-query-builder": "^4.0"
},
"require-dev": {
"facade/ignition": "^2.5",
"fakerphp/faker": "^1.9.1",
"laravel/breeze": "^1.3",
"laravel/sail": "^1.0.1",
"mockery/mockery": "^1.4.2",
"nunomaduro/collision": "^5.0",
"phpunit/phpunit": "^9.3.3"
},
"autoload": {
"psr-4": {
"App\": "app/",
"Database\Factories\": "database/factories/",
"Database\Seeders\": "database/seeders/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\": "tests/"
}
},
"scripts": {
"post-autoload-dump": [
"Illuminate\Foundation\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi"
],
"post-update-cmd": [
"@php artisan vendor:publish --tag=laravel-assets --ansi"
],
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate --ansi"
]
},
"extra": {
"laravel": {
"dont-discover": []
}
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true
},
"minimum-stability": "dev",
"prefer-stable": true
}
watch the video for updating to version 3. https://youtu.be/waoOK5s9ypc
Please or to participate in this conversation.