bastinald / ui Goto Github PK
View Code? Open in Web Editor NEWLaravel Livewire & Bootstrap 5 UI & CRUD starter kit.
Laravel Livewire & Bootstrap 5 UI & CRUD starter kit.
I'm using laradock to run the app.
"require": {
"php": "^8.0",
"babenkoivan/telegram-notifications": "^1.1",
"bastinald/ui": "^2.2",
"diglactic/laravel-breadcrumbs": "^7.1",
"fruitcake/laravel-cors": "^2.0",
"guzzlehttp/guzzle": "^7.0.1",
"intervention/image": "^2.7",
"jantinnerezo/livewire-alert": "^2.2",
"laravel/framework": "^8.75",
"laravel/sanctum": "^2.11",
"laravel/tinker": "^2.5"
},
I set the configs in .env file.
DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=memor
DB_USERNAME=memor
DB_PASSWORD=memor
Hi @bastinald !
I chose your project for PWA capabilities integrated in livewire. I've installed the repo but when i try to login or to register, the application doesnt make anything, the Auth system doesn't works.
I followed all the instructions:
Then I tried to login but when I click on the submit it doesn't works. I don't receive error messages or other messages.
What should I do?
Thank you very much!
Marco
please
not a huge deal as exerything appears to work, but figured it would be a pretty quick update for you to resolve some of the deprecation warnings on install:
Recommendation: math.div($value-diff * 100, $rfs-breakpoint)
More info and automated migrator: https://sass-lang.com/d/slash-div
╷
231 │ $variable-width: #{$value-diff * 100 / $rfs-breakpoint}#{$variable-unit};
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
node_modules/bootstrap/scss/vendor/_rfs.scss 231:30 rfs-fluid-value()
node_modules/bootstrap/scss/mixins/_utilities.scss 37:28 generate-utility()
node_modules/bootstrap/scss/utilities/_api.scss 30:11 @import
node_modules/bootstrap/scss/bootstrap.scss 51:9 @import
vendor/bastinald/ui/resources/scss/ui.scss 26:9 @import
resources/scss/app.scss 2:9 root stylesheet
DEPRECATION WARNING: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.
Recommendation: math.div(1, $rfs-rem-value)
More info and automated migrator: https://sass-lang.com/d/slash-div
╷
208 │ $value: $value / ($value * 0 + if($unit == px, 1, 1 / $rfs-rem-value));
│ ^^^^^^^^^^^^^^^^^^
╵
node_modules/bootstrap/scss/vendor/_rfs.scss 208:59 rfs-fluid-value()
node_modules/bootstrap/scss/mixins/_utilities.scss 37:28 generate-utility()
node_modules/bootstrap/scss/utilities/_api.scss 30:11 @import
node_modules/bootstrap/scss/bootstrap.scss 51:9 @import
vendor/bastinald/ui/resources/scss/ui.scss 26:9 @import
resources/scss/app.scss 2:9 root stylesheet
DEPRECATION WARNING: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.
Recommendation: math.div($value, $value * 0 + if($unit == px, 1, 1 / $rfs-rem-value))
More info and automated migrator: https://sass-lang.com/d/slash-div
╷
208 │ $value: $value / ($value * 0 + if($unit == px, 1, 1 / $rfs-rem-value));
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
node_modules/bootstrap/scss/vendor/_rfs.scss 208:17 rfs-fluid-value()
node_modules/bootstrap/scss/mixins/_utilities.scss 37:28 generate-utility()
node_modules/bootstrap/scss/utilities/_api.scss 30:11 @import
node_modules/bootstrap/scss/bootstrap.scss 51:9 @import
vendor/bastinald/ui/resources/scss/ui.scss 26:9 @import
resources/scss/app.scss 2:9 root stylesheet
DEPRECATION WARNING: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.
Recommendation: math.div($value, $rfs-rem-value)
More info and automated migrator: https://sass-lang.com/d/slash-div
╷
212 │ $val: $val + ' ' + if($rfs-unit == rem, #{$value / $rfs-rem-value}rem, #{$value}px);
│ ^^^^^^^^^^^^^^^^^^^^^^^
╵
node_modules/bootstrap/scss/vendor/_rfs.scss 212:54 rfs-fluid-value()
node_modules/bootstrap/scss/mixins/_utilities.scss 37:28 generate-utility()
node_modules/bootstrap/scss/utilities/_api.scss 30:11 @import
node_modules/bootstrap/scss/bootstrap.scss 51:9 @import
vendor/bastinald/ui/resources/scss/ui.scss 26:9 @import
resources/scss/app.scss 2:9 root stylesheet
DEPRECATION WARNING: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.
Recommendation: math.div(1, $rfs-rem-value)
More info and automated migrator: https://sass-lang.com/d/slash-div
╷
208 │ $value: $value / ($value * 0 + if($unit == px, 1, 1 / $rfs-rem-value));
│ ^^^^^^^^^^^^^^^^^^
╵
node_modules/bootstrap/scss/vendor/_rfs.scss 208:59 rfs-fluid-value()
node_modules/bootstrap/scss/mixins/_utilities.scss 37:28 generate-utility()
node_modules/bootstrap/scss/utilities/_api.scss 30:11 @import
node_modules/bootstrap/scss/bootstrap.scss 51:9 @import
vendor/bastinald/ui/resources/scss/ui.scss 26:9 @import
resources/scss/app.scss 2:9 root stylesheet
DEPRECATION WARNING: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.
Recommendation: math.div($value, $value * 0 + if($unit == px, 1, 1 / $rfs-rem-value))
More info and automated migrator: https://sass-lang.com/d/slash-div
╷
208 │ $value: $value / ($value * 0 + if($unit == px, 1, 1 / $rfs-rem-value));
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
node_modules/bootstrap/scss/vendor/_rfs.scss 208:17 rfs-fluid-value()
node_modules/bootstrap/scss/mixins/_utilities.scss 37:28 generate-utility()
node_modules/bootstrap/scss/utilities/_api.scss 30:11 @import
node_modules/bootstrap/scss/bootstrap.scss 51:9 @import
vendor/bastinald/ui/resources/scss/ui.scss 26:9 @import
resources/scss/app.scss 2:9 root stylesheet
DEPRECATION WARNING: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.
Recommendation: math.div($value, $rfs-rem-value)
More info and automated migrator: https://sass-lang.com/d/slash-div
╷
212 │ $val: $val + ' ' + if($rfs-unit == rem, #{$value / $rfs-rem-value}rem, #{$value}px);
│ ^^^^^^^^^^^^^^^^^^^^^^^
╵
node_modules/bootstrap/scss/vendor/_rfs.scss 212:54 rfs-fluid-value()
node_modules/bootstrap/scss/mixins/_utilities.scss 37:28 generate-utility()
node_modules/bootstrap/scss/utilities/_api.scss 30:11 @import
node_modules/bootstrap/scss/bootstrap.scss 51:9 @import
vendor/bastinald/ui/resources/scss/ui.scss 26:9 @import
resources/scss/app.scss 2:9 root stylesheet
DEPRECATION WARNING: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.
Recommendation: math.div(20em, 16)
More info and automated migrator: https://sass-lang.com/d/slash-div
╷
12 │ $fa-fw-width: (20em / 16);
│ ^^^^^^^^^
╵
node_modules/@fortawesome/fontawesome-free/scss/_variables.scss 12:25 @import
node_modules/@fortawesome/fontawesome-free/scss/fontawesome.scss 5:9 @import
vendor/bastinald/ui/resources/scss/ui.scss 27:9 @import
resources/scss/app.scss 2:9 root stylesheet
DEPRECATION WARNING: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.
Recommendation: math.div(4em, 3)
More info and automated migrator: https://sass-lang.com/d/slash-div
╷
6 │ font-size: (4em / 3);
│ ^^^^^^^
╵
node_modules/@fortawesome/fontawesome-free/scss/_larger.scss 6:15 @import
node_modules/@fortawesome/fontawesome-free/scss/fontawesome.scss 8:9 @import
vendor/bastinald/ui/resources/scss/ui.scss 27:9 @import
resources/scss/app.scss 2:9 root stylesheet
DEPRECATION WARNING: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.
Recommendation: math.div(3em, 4)
More info and automated migrator: https://sass-lang.com/d/slash-div
╷
7 │ line-height: (3em / 4);
│ ^^^^^^^
╵
node_modules/@fortawesome/fontawesome-free/scss/_larger.scss 7:17 @import
node_modules/@fortawesome/fontawesome-free/scss/fontawesome.scss 8:9 @import
vendor/bastinald/ui/resources/scss/ui.scss 27:9 @import
resources/scss/app.scss 2:9 root stylesheet
DEPRECATION WARNING: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.
Recommendation: math.div($fa-li-width * 5, 4)
More info and automated migrator: https://sass-lang.com/d/slash-div
╷
6 │ margin-left: $fa-li-width * 5/4;
│ ^^^^^^^^^^^^^^^^^^
╵
node_modules/@fortawesome/fontawesome-free/scss/_list.scss 6:16 @import
node_modules/@fortawesome/fontawesome-free/scss/fontawesome.scss 10:9 @import
vendor/bastinald/ui/resources/scss/ui.scss 27:9 @import
resources/scss/app.scss 2:9 root stylesheet
DEPRECATION WARNING: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.
Recommendation: math.div(20em, 16)
More info and automated migrator: https://sass-lang.com/d/slash-div
╷
12 │ $fa-fw-width: (20em / 16);
│ ^^^^^^^^^
╵
node_modules/@fortawesome/fontawesome-free/scss/_variables.scss 12:25 @import
node_modules/@fortawesome/fontawesome-free/scss/solid.scss 5:9 @import
vendor/bastinald/ui/resources/scss/ui.scss 28:9 @import
resources/scss/app.scss 2:9 root stylesheet
UI installed!```
Hello, thanks for awesome package..
<x-ui::input :label="__('Email')" type="email" model="email"/>
how to insert lazy option?
When running php artisan ui:migrate, I get the following error: "An exception occurred while executing a query: SQLSTATE[42P07]: Duplicate table: 7 ERROR: relation "temp_users_email_verified_at_index" already exists"
So i have the following setup to give me a nice list of states:
<x-ui::select :options="App\Models\Contact::states()" label="State" />
But how do I set a default selected state (Florida for example)? I don't see any default/selected options for selects.
With your migrations design built into the model class, how should pivot tables, etc, be handled? I have Contacts, Vendors, Users, etc, models where I need to be able to relate those to each other. Typically I would have a migrations file/table that would relate them to each other. Wasn't sure if there was a way to handle that when doing the UI migration method within the model class since its really a third table when relating two tables to each other. I know this really isn't any issue, so hopefully its ok to answer here. Probably more a documentation update request? I appreciate your time.
when I change radio button I need to update company select options
How can I catch the moment when model['role'] is changed and update companyOptions accordingly
https://i.imgur.com/bK7QfeR.png
So as Im testing things and planning, in order to avoid my components and views directory roots from getting messy, it would be nice when creating the component to be able to do something like:
php artisan ui:component Contacts\create -f
or something that would automatically put that component into a its own folder. Reason I am asking for this is that each model will have a create, update, and index. Could even have a view if i decide to go that route. Thoughts on this or a better way to keep things organized?
I really like your coding style and everything appears to be very straightforward to use. Great documentation too. Only thing I have left that i really need is a solid livewire table option for BS5. The only one that I know of is https://github.com/rappasoft/laravel-livewire-tables, which isnt bad, but from what i have seen from your packages so far, yours would be even more flexible and easier to use. Have anything in the works?
Hey,
i saw your video https://www.youtube.com/watch?v=CYl1pMgiecU and wrote a comment that i don't saw anymore so i write this issue for some questions.
First, i already used https://github.com/bastinald/laravel-livewire-auth and it works some perfect and i will take a look at this too.
But i have some questions before i will do this:
$this->emit('showModal', 'foo', $service)
or can i inject these service directly via the mount function?Greetings
Hi @bastinald ,
Your repositories are awesome, welldone.
Please let me know what is the difference between UI, Laravel-Livewire Scaffolding Starter kits (all reps that deal with basic starter kit laravel-livewire), or which I should use for my new project.
Thanks.
It appears that when running ui:migrate --fs
everything appears to run and i get success messages for both, but then looking at the tables, the seeds never run. It isn't until i run the --s
on its own where it finally spits out an error. Guess it doesn't like enum types, but thats a whole other matter and maybe i will just not use them.
Good package to use .
I need to customize login/register form but vendor:publish command fails.
Can't locate path: <$project_directory\vendor\bastinald\ui\src\Providers/../../views>
Help Needed !
Is this intentional? Composer will only install 1.0.4 unless I'm on PHP 8.
<x-ui::select :label="__('Color')" :options="['Red', 'Blue']" model="color"/>
What I want is to pass an assoc array and the select component should parse it automatically
$managers = User::where('role', 'manager')->get(['id', 'name']);
$arr = [];
$managers->map(function ($item) use (&$arr){
$arr[$item->id] = $item->name;
});
$this->managerOptions = $arr;
use it in view like this
<x-ui::select :label="__('Manager')" :options="managerOptions" model="manager_id"/>
thanks
TypeError
Illuminate\Support\Arr::isAssoc(): Argument #1 ($array) must be of type array, string given, called in /var/www/webdashboard.test/storage/framework/views/9d465923f39b268503f96b3b64bf195c5b6b59ca.php on line 22 (View: /var/www/webdashboard.test/resources/views/vendor/ui/components/radio.blade.php)
used in save.blade.php
<x-ui::radio :label="__('Роль')" options="['supervisor', 'manager']" model="role"/>
role exists in users table. default value is manager
What to send ? passing array in options.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.