I want to install a tailwind package for my laravel project.
I write in Terminal: composer require composer require laravel-frontend-presets/tailwindcss --dev
The error is:
Your requirements could not be resolved to an installable set of packages.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
I expect to install all packages correctly.
This package looks like the same of Laravel Breeze one of the official starter kit.
I recommend to use Laravel Breeze or Laravel JetStream that are both served with tailwindcss, and you can use both as well with InertiaJS for Server Side Rendering and choosing between VueJS or ReactJS as javascript framework.
Check Out this:
https://laravel.com/docs/9.x/starter-kits
Related
In Laravel, I know running composer require laravel/ui and then php artisan ui vue --auth creates authentication scaffolding but it uses Bootstrap. Is there a way to create this scaffolding without Bootstrap?
Unfortunately and as I know, there is no alternative for the bootstrap UI in laravel authentication scaffolding, as I know there is a tailwind but the last update on the repo was 2 years ago so not sure if it is supported now
https://github.com/laravel-frontend-presets/tailwindcss
also, you can change it or create a new one, all view files in this path
resources/views/auth
if you want use TailWindCss And Compatibility with Laravel V9
You Can Use this package :
Github Repo
It's very simple and I've been using it for a few minutes
I want to install guzzle https://github.com/guzzle/guzzle
I read the reference, but I'm confused this section :
From that tutorial, asking for require composer autoloader. So seems needed to add require 'vendor/autoload.php';
Where I add the script?
I using laravel 5.6
You don't have to do anything if you are going to install guzzle in Laravel.
The example above is for core php actually. Laravel will automatically do it for you.
Just run composer require guzzlehttp/guzzle in your terminal. (of course in the directory where your laravel project actually is.)
And add use GuzzleHttp\Client; at the top of the file you will be calling guzzle from.
Does laravel has gems like as ruby on rails have? Like, for signup flow ruby on rails has "devise" gem. Does laravel has anything like that?
There is no built-in package manager for Laravel but you can use reference like: https://packalyst.com . Here you can find all available packages for Laravel. All of them can be installed with Composer - php package manager. There is detail description how to install every pack in Packalyst.
If you want to have auth in Laravel you have two options. To do it manually, or to use the built-in module for authentication. You can run
php artisan make:auth
in the main project directory. This will add the required views and routes in the Laravel file structure in order to use the auth. Better to run this command on fresh installation. See this for detailed step by step authentication with Laravel 5: https://laravel.com/docs/5.5/authentication#authentication-quickstart
I am looking for way to install Ckedior in laravel and vue.js comopnent.
I installed ckeditor using
composer require ckeditor/ckeditor
Now I want to implement this in my component, but I cant find how to do it..
I'm a newbie in php / laravel / js libs world. I want to add require.js to my laravel 5.4 project, and some questions are come up.
First: What is the difference between these two lib:
npm install requirejs / npm install laravel-elixir-requirejs? Which one should i use?
Second: What is this elixir for? Why does laravel 5.4 documentation not contain this elixir?
Thanks for the answers in advance!
Laravel Elixir provides a clean, fluent API for defining basic Gulp tasks for your Laravel application. Elixir supports common CSS and JavaScript pre-processors like Sass and Webpack. Using method chaining, Elixir allows you to fluently define your asset pipeline.
It's more like micro framework for setting out the work flow and the second npm install requirejs means that npm will install .js where npm install laravel-elixir-requirejs is the js package specifically load js for elxir framework which is an component of laravel.