vanilophp / framework Goto Github PK
View Code? Open in Web Editor NEWThe truly Laravel E-commerce Framework
Home Page: https://vanilo.io
License: MIT License
The truly Laravel E-commerce Framework
Home Page: https://vanilo.io
License: MIT License
I have followed the installation section of the official documentation, without any error messages, except some warnings when running yarn run dev:
$ npm run development
> @ development C:\Users\computer\Documents\php-projects\vaniloapp
> cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
The system cannot find the path specified. Additional dependencies must be installed. This will only take a moment.
Running: npm install vue-template-compiler --save-dev --production=false
npm WARN rm not removing C:\Users\computer\Documents\php-projects\vaniloapp\node_modules\.bin\regjsparser.cmd as it wasn't installed by C:\Users\computer\Documents\php-projects\vaniloapp\node_modules\regjsparser
npm WARN rm not removing C:\Users\computer\Documents\php-projects\vaniloapp\node_modules\.bin\regjsparser as it wasn't installed by C:\Users\computer\Documents\php-projects\vaniloapp\node_modules\regjsparser
npm WARN rm not removing C:\Users\computer\Documents\php-projects\vaniloapp\node_modules\.bin\json5.cmd as it wasn't installed by C:\Users\computer\Documents\php-projects\vaniloapp\node_modules\json5
npm WARN rm not removing C:\Users\computer\Documents\php-projects\vaniloapp\node_modules\.bin\json5 as it wasn't installed by C:\Users\computer\Documents\php-projects\vaniloapp\node_modules\json5
npm WARN rm not removing C:\Users\computer\Documents\php-projects\vaniloapp\node_modules\.bin\jsesc.cmd as it wasn't installed by C:\Users\computer\Documents\php-projects\vaniloapp\node_modules\jsesc
npm WARN rm not removing C:\Users\computer\Documents\php-projects\vaniloapp\node_modules\.bin\jsesc as it wasn't installed by C:\Users\computer\Documents\php-projects\vaniloapp\node_modules\jsesc
npm WARN rm not removing C:\Users\computer\Documents\php-projects\vaniloapp\node_modules\.bin\cssesc.cmd as it wasn't installed by C:\Users\computer\Documents\php-projects\vaniloapp\node_modules\cssesc
npm WARN rm not removing C:\Users\computer\Documents\php-projects\vaniloapp\node_modules\.bin\cssesc as it wasn't installed by C:\Users\computer\Documents\php-projects\vaniloapp\node_modules\cssesc
npm notice created a lockfile as package-lock.json. You should commit this file.
Okay, done. The following packages have been installed and saved to your package.json dependencies list:
- vue-template-compiler
The system cannot find the path specified.
Additional dependencies must be installed. This will only take a moment.
Running: npm install sass-loader@7.* sass [email protected] --save-dev --production=false
npm WARN deprecated [email protected]: package is bloated with temp files (fixed in 2.3.2)
npm WARN [email protected] requires a peer of webpack@^3.0.0 || ^4.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
The final result when going to the url http://127.0.0.1:8000/admin/customer is:
I'm on windows 10, composer version is: 1.8.0 2018-12-03 10:31:16; php version is 7.2.10
I configured vanilo in my project. But when I add product images, it saved as "http://localhost/storage/5/conversions/sdf-thumbnail.jpg"
which has being saved correctly, but cannot access because it missing port details. correct form should be http://localhost:8000/storage/5/conversions/sdf-thumbnail.jpg
The form in my code was missing the 'for'=>'product'
so I have changed it to the code below
{!! Form::open(['route' => ['vanilo.media.store', 'for'=>'product' ], 'enctype'=>'multipart/form-data', 'class' => 'card']) !!}
if fixed, please ignore.
I am getting the error below on runnning "php artisan migrate --seed"
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error i
n your SQL syntax; check the manual that corresponds to your MariaDB server
version for the right syntax to use near 'json not null, custom_propertie s
json not null, responsive_images
json not n' at line 1
Hi @fulopattila122,
Do you need any help for this project? I would like to help as i'm looking for some ecommerce frameworks like this project, but i couldn't find any. So, if you need my help on it, it would be my pleasure to contribute on this project.
Hi,
how can it be achieved that the last saved cart is re-loaded into the session when a user comes back and log in?
I’m using vanilo in a project I’m working on even though I realise you do not have the 1.0 yet.
I’ve had to modify a few of the views in vendor/vanilo/framework/resources/views and I was wondering if you envisioned a system to override some of the views or controllers in the framework properly ?
SO I could have modified views in my main folder and leave everything untouched in vendor.
Thanks for your help and for this very promising project for the Laravel community
As an administrator, when I login to the back-office, I should land on a dashboard page summarizing latest orders, number of products in Catalog, basic statistics and last login information.
Feel free to discuss about the idea and about the features that this dashboard should provide.
As an example (and I mean "only for demonstration purposes, not feature request"), I link a screenshot of Magento 2 dashboard:
I’m using vanilo in a project I’m working on even though I realise you do not have the 1.0 yet.
I’ve had to modify a method in a controller in vendor/vanilo/framework/resources/views and I was wondering if you envisioned a system to override some of these controllers in the framework properly ?
SO I could have modified views in my main folder and leave everything untouched in vendor.
Thanks again for your help and this cool project
Hi. Is there a way to retrieve all products that belongs to taxonomy?
Route::get('c/{taxonomyName}/{taxon?}', 'ProductController@index')->name('category');
This route works only with taxons. I couldn't find a solution witout rewriting compitelly
ProductController@index method
I use npm instead of yarn (Windows 10) and it works fine. No mention of it on installation instructions.
Is it possible to receive an email when a new product order? I didn't find anything about it in the documentation.
Thank you for this interesting project!
Hello @fulopattila122 ,
I'm really interested in your project and wanted to know if you are still working on it or I should consider it abandoned.
Thanks!
I've tried to install Vanilo, but there is an error
Declaration of Konekt\Menu\ItemCollection::add(Konekt\Menu\Item $item) should be compatible with Illuminate\Support\Collection::add($item)
I can not see the create
function in the OrderController
. Furthermore, the edit
function is not there as well.
Can you please remove the routes from the admin routes? (unless you plan to implement it in future)
Hi there,
Would you be able to share some your basic concepts of shipment handling. We currently are starting up a new project and would like to use Vanilo as the framework. However, we don't think we will have the time to wait until the shipment feature's release. To avoid trouble for further upgrading, it might be good if we can implement similar concepts regarding the shipment handling. It would be greater if you could provide some ideas for order processing as well.
For the payment feature, would there be possibilities for us to add on customized payment channel?
Thanks and regards
Hi,
i followed the instructions of the installation but once i enter the command
php artisan concord:modules -a
it replies me :
Class 'Breadcrumbs' not found
Could anyone help me ?
Hi I got this error when running 'yarn run dev'
ERROR in multi ./resources/assets/js/app.js ./vendor/konekt/appshell/src/resources/assets/sass/appshell.sass
Module not found: Error: Can't resolve '/Users/liaolliso/work/vaniloapp/resources/assets/js/app.js' in '/Users/liaolliso/work/vaniloapp'
@ multi ./resources/assets/js/app.js ./vendor/konekt/appshell/src/resources/assets/sass/appshell.sass
not sure why this happens, any ideas much appreciated!
Hello,
After installation following the documentation the following error showed up upon running yarn run dev:
ERROR in ./vendor/konekt/appshell/src/resources/assets/sass/appshell.sass
Module build failed (from ./node_modules/css-loader/index.js):
ModuleBuildError: Module build failed (from ./node_modules/sass-loader/lib/loader.js):
&.callout-#{$color} {
^
Top-level selectors may not contain the parent selector "&".
&.callout-#{$color} {
^^^^^^^^^^^^^^^^^^^^
vendor/konekt/appshell/src/resources/assets/sass/core/_callout.scss 48:3 @import
stdin 45:9 root stylesheet
My versions are the following:
vagrant@homestead:~/code/vanillo$ composer show konekt/appshell|grep 'versions'
versions : * 1.3.0
vagrant@homestead:~/code/vanillo$ composer show vanilo/framework|grep 'versions'
versions : * 0.4.0
vagrant@homestead:~/code/vanillo$ composer show laravel/framework|grep 'versions'
versions : * v5.7.20
In the mean time I'm going to use your demo repo to run a few tests.
Also, I'm going to be building an e-commerce site for the next 2 months at least with a lot of free time.
I'm interested in a few features that you still have in development/not release so if you need help on those I would gladly help you and this framework while doing also my website.
Thanks,
João Lourenço.
When adding Framework / AppShell configuration for routes -> prefix in concord.php, an exception is raised:
DaveJamesMiller\Breadcrumbs\Exceptions\DuplicateBreadcrumbException : Breadcrumb name "home" has already been registered
I've installed both the framework and the demo site and I cannot locate or do not have a way to assign a product to a category...I've created test products, and a test category...please advise
Perhaps a site already loaded with demo data?
Suggesting to take a look https://www.vuestorefront.io/ and see if it might be a valid front-end alternative in order to scale down size of this project and focus on the backend side.
I think also a lot of inspiration can be taken from https://getsaleor.com/ for the backend
When using the cart, it appears that the user_id is remaining as 0? how can I fix this?
php artisan appshell:super
Now you're about to create a new user with all privileges
E-mail:
> [email protected]
Name:
> test
Password:
>
Role name [admin]:
>
User '[email protected]' has been created (id: 2)
In GuardDoesNotMatch.php line 12:
The given role or permission should use guard `` instead of `web`.
Thanks.
[Symfony\Component\Debug\Exception\FatalThrowableError]
Class 'Konekt\Vanilo\Providers\ModuleServiceProvider' not found
I'm very interested in Vanilo, but I have a question: does it support multi-vendor/multi-tenancy?
I want to make a way in that any user of my system can create your own store.
Thanks
I had to look inside `conposer.json' file to see whether you have included a license or not.
Can you please make it explicit so other users know what kind of license this project is using?
I copied some of the demo code for the checkout flow and now, at this stage, in the database, after going through the checkout flow, I see
Now I have he following questions
Why do I have no customer in the customers table ? I was assuming the customer would be linked to a Laravel user account or something so that the customer could log back in his/her account later (and see an order list for example). Today, the order is linked to the billpayer but I see no way for this billpayer to authenticate. Actually, this billpayer does not have an email …. So, numbering my questions :
Thanks for your help
Roadmap seems to be a bit abandoned
Soon after installing when I do "php artisan concord:modules -a", I get the following:
PHP Fatal error: Interface 'Konekt\AppShell\Contracts\Requests\BaseRequest' not found in /home/vagrant/Projects/vanilo.local/www/vendor/vanilo/framework/src/Contracts/Requests/CreateProduct.php on line 17
In CreateProduct.php line 17:
Interface 'Konekt\AppShell\Contracts\Requests\BaseRequest' not found
Please let me know how I should about it. Thanks and keep up the great work! Love the concept!!
Hi there!
Thank you for the work you've put into creating this framework, it's very well built and nicely documented. :)
I have a question regarding setting Vanilo on a Laravel 5.6 installation.
How would you go about extending the \Konekt\AppShell\Models\User
class with the Authenticatable trait that the standard LV 5.6 User extends?
Any guidance would be greatly appreciated!
when eve i execute "php artisan db:seed --class 'Konekt\Address\Seeds\Countries'"
i get error
ReflectionException : Class 'Konekt\Address\Seeds\Countries' does not exist
Help please
When running this migration
Migrating: 2018_12_09_193651_create_property_permissions
Getting this error:
No query results for model [Konekt\Acl\Models\Role].
Any advice please?
Hello. It seems Vanilo does not support Laravel 5.8 (released today). Can you update the composer.json?
I am in hurry because I need to start a project for a client this week.
Thanks a lot!
Hello,
In order to avoid currency problems, I suggest using Fowler's Money pattern, via this package: https://github.com/moneyphp/money
What do you think?
I create product images using temporary pictures stored in storage
Here is a part of my Product model
And here is a part of vanilo config
If I uncomment 'queued' => true strings I get following error
Spatie\MediaLibrary\Exceptions\InvalidConversion: There is no conversion named large
in /var/www/html/soulmade/vendor/spatie/laravel-medialibrary/src/Exceptions/InvalidConversion.php:11
Stack trace:
#0 /var/www/html/soulmade/vendor/spatie/laravel-medialibrary/src/Conversion/ConversionCollection.php(61): Spatie\MediaLibrary\Exceptions\InvalidConversion::unknownName('large')
#1 /var/www/html/soulmade/vendor/spatie/laravel-medialibrary/src/UrlGenerator/UrlGeneratorFactory.php(27): Spatie\MediaLibrary\Conversion\ConversionCollection->getByName('large')
#2 /var/www/html/soulmade/vendor/spatie/laravel-medialibrary/src/Models/Media.php(74): Spatie\MediaLibrary\UrlGenerator\UrlGeneratorFactory::createForMedia(Object(Spatie\MediaLibrary\Models\Media), 'large')
#3 /var/www/html/soulmade/vendor/spatie/laravel-medialibrary/src/FileManipulator.php(81): Spatie\MediaLibrary\Models\Media->getPath('large')
#4 /var/www/html/soulmade/vendor/laravel/framework/src/Illuminate/Support/Collection.php(1516): Spatie\MediaLibrary\FileManipulator->Spatie\MediaLibrary{closure}(Object(Spatie\MediaLibrary\Conversion\Conversion), 1)
#5 [internal function]: Illuminate\Support\Collection->Illuminate\Support{closure}(Object(Spatie\MediaLibrary\Conversion\Conversion), 1)
#6 /var/www/html/soulmade/vendor/laravel/framework/src/Illuminate/Support/Arr.php(611): array_filter(Array, Object(Closure), 1)
#7 /var/www/html/soulmade/vendor/laravel/framework/src/Illuminate/Support/Collection.php(549): Illuminate\Support\Arr::where(Array, Object(Closure))
#8 /var/www/html/soulmade/vendor/laravel/framework/src/Illuminate/Support/Collection.php(1518): Illuminate\Support\Collection->filter(Object(Closure))
#9 /var/www/html/soulmade/vendor/spatie/laravel-medialibrary/src/FileManipulator.php(90): Illuminate\Support\Collection->reject(Object(Closure))
#10 /var/www/html/soulmade/vendor/spatie/laravel-medialibrary/src/Jobs/PerformConversions.php(32): Spatie\MediaLibrary\FileManipulator->performConversions(Object(Spatie\MediaLibrary\Conversion\ConversionCollection), Object(Spatie\MediaLibrary\Models\Media))
#11 [internal function]: Spatie\MediaLibrary\Jobs\PerformConversions->handle()
#12 /var/www/html/soulmade/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(32): call_user_func_array(Array, Array)
#13 /var/www/html/soulmade/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(90): Illuminate\Container\BoundMethod::Illuminate\Container{closure}()
#14 /var/www/html/soulmade/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(34): Illuminate\Container\BoundMethod::callBoundMethod(Object(Illuminate\Foundation\Application), Array, Object(Closure))
#15 /var/www/html/soulmade/vendor/laravel/framework/src/Illuminate/Container/Container.php(576): Illuminate\Container\BoundMethod::call(Object(Illuminate\Foundation\Application), Array, Array, NULL)
#16 /var/www/html/soulmade/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(94): Illuminate\Container\Container->call(Array)
#17 /var/www/html/soulmade/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\Bus\Dispatcher->Illuminate\Bus{closure}(Object(Spatie\MediaLibrary\Jobs\PerformConversions))
#18 /var/www/html/soulmade/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(104): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Spatie\MediaLibrary\Jobs\PerformConversions))
#19 /var/www/html/soulmade/vendor/laravel/framework/src/Illuminate/Bus/Dispatcher.php(98): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#20 /var/www/html/soulmade/vendor/laravel/framework/src/Illuminate/Queue/CallQueuedHandler.php(49): Illuminate\Bus\Dispatcher->dispatchNow(Object(Spatie\MediaLibrary\Jobs\PerformConversions), false)
#21 /var/www/html/soulmade/vendor/laravel/framework/src/Illuminate/Queue/Jobs/Job.php(88): Illuminate\Queue\CallQueuedHandler->call(Object(Illuminate\Queue\Jobs\DatabaseJob), Array)
#22 /var/www/html/soulmade/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(327): Illuminate\Queue\Jobs\Job->fire()
#23 /var/www/html/soulmade/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(277): Illuminate\Queue\Worker->process('database', Object(Illuminate\Queue\Jobs\DatabaseJob), Object(Illuminate\Queue\WorkerOptions))
#24 /var/www/html/soulmade/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(118): Illuminate\Queue\Worker->runJob(Object(Illuminate\Queue\Jobs\DatabaseJob), 'database', Object(Illuminate\Queue\WorkerOptions))
#25 /var/www/html/soulmade/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(102): Illuminate\Queue\Worker->daemon('database', 'default', Object(Illuminate\Queue\WorkerOptions))
#26 /var/www/html/soulmade/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(86): Illuminate\Queue\Console\WorkCommand->runWorker('database', 'default')
#27 [internal function]: Illuminate\Queue\Console\WorkCommand->handle()
#28 /var/www/html/soulmade/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(32): call_user_func_array(Array, Array)
#29 /var/www/html/soulmade/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(90): Illuminate\Container\BoundMethod::Illuminate\Container{closure}()
#30 /var/www/html/soulmade/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(34): Illuminate\Container\BoundMethod::callBoundMethod(Object(Illuminate\Foundation\Application), Array, Object(Closure))
#31 /var/www/html/soulmade/vendor/laravel/framework/src/Illuminate/Container/Container.php(576): Illuminate\Container\BoundMethod::call(Object(Illuminate\Foundation\Application), Array, Array, NULL)
#32 /var/www/html/soulmade/vendor/laravel/framework/src/Illuminate/Console/Command.php(183): Illuminate\Container\Container->call(Array)
#33 /var/www/html/soulmade/vendor/symfony/console/Command/Command.php(255): Illuminate\Console\Command->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Illuminate\Console\OutputStyle))
#34 /var/www/html/soulmade/vendor/laravel/framework/src/Illuminate/Console/Command.php(170): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Illuminate\Console\OutputStyle))
#35 /var/www/html/soulmade/vendor/symfony/console/Application.php(921): Illuminate\Console\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#36 /var/www/html/soulmade/vendor/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand(Object(Illuminate\Queue\Console\WorkCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#37 /var/www/html/soulmade/vendor/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#38 /var/www/html/soulmade/vendor/laravel/framework/src/Illuminate/Console/Application.php(90): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#39 /var/www/html/soulmade/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(133): Illuminate\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#40 /var/www/html/soulmade/artisan(37): Illuminate\Foundation\Console\Kernel->handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#41 {main}
In non-queued mode everything work fine but slow. Sorry for such a long text but and ideas why is it so?
Is it possible within the OrderFactory
to assign custom variables/attributes to the order? for example at the moment I've got the following:
$factory = app(OrderFactory::class);
$item = [
'product' => 'product',
'product_id' => 3,
'price' => $this->getPrice(Request::get('platform'), Request::get('amount')),
'name' => 'Virtual Currency',
'quantity' => 1,
];
$factory->createFromDataArray([], [$item]);
Would it be possible to maybe add the ability for us to add dynamic elements to the $item
such as something like so?
$factory = app(OrderFactory::class);
$item = [
'product' => 'product',
'product_id' => 3,
'price' => $this->getPrice(Request::get('platform'), Request::get('amount')),
'name' => 'Virtual Currency',
'quantity' => 1,
'currency_volume' => '5000'
];
$factory->createFromDataArray([], [$item]);
I started to use this package but I don't find any explanation on why it's built on top of concord ugly module system.
The default Laravel extensions system is organized enough, and I think using concord module system only desviates Vanilo from his original objective that is to be "Simple & truly Laravel".
For example, AppShell JS & Sass resources are inside the VENDOR directory without compiling. This makes difficult to unit test and add CI because you need not only to compile your custom assets but also the vendor assets on each CI pipeline. So, there is no separation of concerns for "frontend"(npm) and "backend"(composer) because the AppShell frontend resources are inside the composer vendor directory.
The laravel documentation states clearly how public assets should be handled: https://laravel.com/docs/5.8/packages#public-assets
And the concord system is not handling this well. Also, it's not offering anything that cannot be done with plain PHP.
So, I think using concord is lowering the quality of vanilo and the separation of concerns. And also adding a lot of dependencies that does not add anything useful. (Yes, I know AppShell is based on corcord, but it can be easily rewrited in plain Laravel)
So, my final question is.. why does Vanilo use Concord?
`Migration table created successfully.
In Connection.php line 664:
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was t
oo long; max key length is 767 bytes (SQL: alter table users
add unique users_email_unique
(email
))
In Connection.php line 458:
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was t
oo long; max key length is 767 bytes
`
Is it possible for you to provide an ER diagram on this? it would be extremely easier then to identify it would be compatible with our needs..
PS: This is a wonderful project. Thanks
I followed all the instructions at https://vanilo.io/docs/0.2/installation but when I try to access myurl/admin/customer I keep getting " Symfony \ Component \ HttpKernel \ Exception \ HttpException
No message" error. Not sure what's going wrong. I did download demo app and that worked fine.
Only thing I did different was when I created super user then instead of default admin role, I entered in "super admin" which created new role.
Hi,
I'm getting the following issue when using spatie/laravel-permission and vanillo/framework together.
PHP Fatal error: Cannot redeclare getModelForGuard() (previously declared in C:....\vendor\konekt\acl\src\Support\helpers.php:8) in C:....\vendor\spatie\laravel-permission\src\helpers.php on line 14
I can see that konekt/acl is a modified version of spatie/laravel-permission package, and @fulopattila122 you are also one of the authors konekt/acl
Since both the definition and functionality is same so this issue can be avoided if following solution is implemented.
if(!function_exists('getModelForGuard') {
function getModelForGuard(string $guard)
{
return collect(config('auth.guards'))
->map(function ($guard) {
return config("auth.providers.{$guard['provider']}.model");
})->get($guard);
}
}
or rename the function from getModelForGuard to getGuardModel
Thanks.
i'm following the installation instruction but i have encountered this issue twice, when running
php artisan migrate
i get this error message
Migrating: 2016_12_18_121118_create_profiles_table
Illuminate\Database\QueryException : SQLSTATE[HY000]: General error: 1005 Can't create table `vanilo`.`#sql-9a5_a6` (errno: 150 "Foreign key constraint is incorrectly formed") (SQL: alter table `profiles` add constraint `profiles_user_id_foreign` foreign key (`user_id`) references `users` (`id`))
at vaniloapp/vendor/laravel/framework/src/Illuminate/Database/Connection.php:664
660| // If an exception occurs when attempting to run a query, we'll format the error
661| // message to include the bindings with SQL, which will make this exception a
662| // lot more helpful to the developer instead of just the database's errors.
663| catch (Exception $e) {
> 664| throw new QueryException(
665| $query, $this->prepareBindings($bindings), $e
666| );
667| }
668|
Exception trace:
1 PDOException::("SQLSTATE[HY000]: General error: 1005 Can't create table `vanilo`.`#sql-9a5_a6` (errno: 150 "Foreign key constraint is incorrectly formed")")
vaniloapp/vendor/laravel/framework/src/Illuminate/Database/Connection.php:458
2 PDOStatement::execute()
vaniloapp/vendor/laravel/framework/src/Illuminate/Database/Connection.php:458
my database is Server version: 10.2.18-MariaDB - Homebrew
I am trying to insert address for a company and this error comes up above the form:
Error: Method Illuminate\Database\Query\Builder::customers does not exist.
The address gets inserted, however there is no link created between customer to address in customer_addresses table.
Any help on this please?
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.