vanilophp / docs Goto Github PK
View Code? Open in Web Editor NEWVanilo Documentation (Laravel E-commerce)
Home Page: https://vanilo.io/docs/
Vanilo Documentation (Laravel E-commerce)
Home Page: https://vanilo.io/docs/
In the Installation guide, Laravel Auth Support - Step 2, example given has the wrong namespace. I believe the example is inherited from v2.x.
Current :
// app/User.php
namespace App;
Should be :
// app/Models/User.php
namespace App\Models;
If an user follows the example or copypasta, he will get an error :
Class App\Models\User must extend or implement Konekt\User\Contracts\User
Hi. Whenever I want to run this command it gives me an error and exits.
php artisan appshell:super
It does not let me to enter user info. It just says aborted and quits to the command prompt.
Laravel Vite is the new default frontend build toolkit, but it has only been added to Laravel v9.19.
But Laravel Mix is still available, and even the doc says that there's a back-and-forth migration path between the two: https://laravel.com/docs/9.x/vite#vite-or-mix
The Vanilo Framework is not supplying any frontend, but the vanilo/admin package requires a frontend build step.
Vanilo has received several requests to provide Vite installation instructions: vanilophp/admin#2 vanilophp/framework#131
Laravel 6 has the php artisan make:auth
command removed.
Instead the following commands have to be run:
composer require laravel/ui --dev
php artisan ui vue --auth
Not running these commands means Vue and Popper.js don't get installed while vendor/konekt/appshell/src/resources/assets/js/appshell.standalone.js
needs those.
Reason I didn't create a PR is because there is a more elegant way to fix this problem.
Vanilo only works with certain npm/yarn
packages installed. A command like Laravel does with php artisan ui vue --auth
adds the required packages to the packages.json
. This way it doesn't matter if the packages are already installed or not since the command will add the packages to packages.json
.
If the maintainers of Vanilo want the command; I'll write it. Just let me know which packages are essential for installation.
Follow the installation docs (create a new project from scratch).
I was trying to install vanilo. everything upto migrate command matches that of documentation. But, i am stuck at migrate command. The error is as follows:
Migration table created successfully.
Migrating: 2014_10_12_000000_create_users_table
Migrated: 2014_10_12_000000_create_users_table
Migrating: 2014_10_12_100000_create_password_resets_table
Migrated: 2014_10_12_100000_create_password_resets_table
Migrating: 2016_11_24_104017_create_countries_table
Migrated: 2016_11_24_104017_create_countries_table
Migrating: 2016_11_24_104459_create_provinces_table
Migrated: 2016_11_24_104459_create_provinces_table
Migrating: 2016_12_03_110323_create_addresses_table
Migrated: 2016_12_03_110323_create_addresses_table
Migrating: 2016_12_04_104214_create_persons_table
Migrated: 2016_12_04_104214_create_persons_table
Migrating: 2016_12_04_191141_create_organizations_table
Migrated: 2016_12_04_191141_create_organizations_table
Migrating: 2016_12_18_113707_extend_users_table
Migrated: 2016_12_18_113707_extend_users_table
Migrating: 2016_12_18_121118_create_profiles_table
Illuminate\Database\QueryException : SQLSTATE[HY000]: General error: 1005 Can't create table sws_ec omm
.#sql-1fc8_586
(errno: 150 "Foreign key constraint is incorrectly formed") (SQL: alter table prof iles
add constraint profiles_user_id_foreign
foreign key (user_id
) references users
(id
))
at E:\xampp7\htdocs\SWS\sws_ecomm\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 sws_ecomm
.#sql-1fc8_586
(errno: 150 "Foreign key constraint is incorrectly formed")")
E:\xampp7\htdocs\SWS\sws_ecomm\vendor\laravel\framework\src\Illuminate\Database\Connection.php:458
2 PDOStatement::execute()
E:\xampp7\htdocs\SWS\sws_ecomm\vendor\laravel\framework\src\Illuminate\Database\Connection.php:458
Please use the argument -v to see more details.
How can i rectify this problem?
Can't find any templating guide. I'm not a programmer and it's very difficult to understand how to do anything. I'm widely familiar with blade template engine but that's it.
Some helpers needed for building menus / static pages / product list collections by criteria etc...
There is no documentation for the Channels module. How does it work. Does it allow you to run multiple store fronts from one Vanilo installation? I can't seem to get it to do anything.
I have been running a command php artisan migrate
and then come up with this error message :
Migrating: 2014_10_12_000000_create_users_table
Migrated: 2014_10_12_000000_create_users_table
Migrating: 2014_10_12_100000_create_password_resets_table
Migrated: 2014_10_12_100000_create_password_resets_table
Migrating: 2016_11_24_104017_create_countries_table
Migrated: 2016_11_24_104017_create_countries_table
Migrating: 2016_11_24_104459_create_provinces_table
Migrated: 2016_11_24_104459_create_provinces_table
Migrating: 2016_12_03_110323_create_addresses_table
Migrated: 2016_12_03_110323_create_addresses_table
Migrating: 2016_12_04_104214_create_persons_table
Migrated: 2016_12_04_104214_create_persons_table
Migrating: 2016_12_04_191141_create_organizations_table
Migrated: 2016_12_04_191141_create_organizations_table
Migrating: 2016_12_18_113707_extend_users_table
Migrated: 2016_12_18_113707_extend_users_table
Migrating: 2016_12_18_121118_create_profiles_table
In Connection.php line 664:
SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'profiles' already exists (SQL: create
table profiles
(id
int unsigned not null auto_increment primary key, user_id
int unsigned not
null, person_id
int unsigned not null, avatar_type
varchar(191) null, avatar_data
text null, c reated_at
timestamp null, updated_at
timestamp null) default character set utf8mb4 collate 'utf8mb
4_unicode_ci')
How I can get through this problem??
Call to undefined method App\Models\User::assignRole()
The example for the flexible User doesn't use the HasRoles
trait and thus fails when creating the super user with php artisan make:superuser
.
Fix: use Konekt\Acl\Traits\HasRoles
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.