laraveldaily / laravel-demo-courses-enrollment Goto Github PK
View Code? Open in Web Editor NEWDemo Laravel project (task from Upwork) for students to register for courses from various universities.
Demo Laravel project (task from Upwork) for students to register for courses from various universities.
$ php artisan migrate --seed
?[32mMigration table created successfully.?[39m
?[33mMigrating:?[39m 2014_10_12_100000_create_password_resets_table
?[32mMigrated:?[39m 2014_10_12_100000_create_password_resets_table (0.01 seconds)
?[33mMigrating:?[39m 2016_06_01_000001_create_oauth_auth_codes_table
?[32mMigrated:?[39m 2016_06_01_000001_create_oauth_auth_codes_table (0.01 seconds)
?[33mMigrating:?[39m 2016_06_01_000002_create_oauth_access_tokens_table
?[32mMigrated:?[39m 2016_06_01_000002_create_oauth_access_tokens_table (0.02 seconds)
?[33mMigrating:?[39m 2016_06_01_000003_create_oauth_refresh_tokens_table
?[32mMigrated:?[39m 2016_06_01_000003_create_oauth_refresh_tokens_table (0.02 seconds)
?[33mMigrating:?[39m 2016_06_01_000004_create_oauth_clients_table
?[32mMigrated:?[39m 2016_06_01_000004_create_oauth_clients_table (0.01 seconds)
?[33mMigrating:?[39m 2016_06_01_000005_create_oauth_personal_access_clients_table
?[32mMigrated:?[39m 2016_06_01_000005_create_oauth_personal_access_clients_table (0.01 seconds)
?[33mMigrating:?[39m 2019_10_30_000001_create_media_table
?[41;1m Illuminate\Database\QueryException ?[49;22m : ?[33mSQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000
bytes (SQL: alter table `media` add index `media_model_type_model_id_index`(`model_type`, `model_id`))?[39m
at ?[32mC:\wamp64_320\www\laravel_student\Laravel-Demo-Courses-Enrollment\vendor\laravel\framework\src\Illuminate\Database\Connection.php?[39m:?[32m665?[39m
661| // If an exception occurs when attempting to run a query, we'll format the error
662| // message to include the bindings with SQL, which will make this exception a
663| // lot more helpful to the developer instead of just the database's errors.
664| catch (Exception $e) {
> 665| throw new QueryException(
666| $query, $this->prepareBindings($bindings), $e
667| );
668| }
669|
?[33mException trace:?[39m
?[36m1 ?[39m?[33mDoctrine\DBAL\Driver\PDOException::("SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 by
tes")?[39m
?[32mC:\wamp64_320\www\laravel_student\Laravel-Demo-Courses-Enrollment\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOStatement.php?[39m:?[32m119?[39m
?[36m2 ?[39m?[33mPDOException::("SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes")?[39m
?[32mC:\wamp64_320\www\laravel_student\Laravel-Demo-Courses-Enrollment\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOStatement.php?[39m:?[32m117?[39m
?[32mPlease use the argument ?[39m?[31m-v?[39m?[32m to see more details.?[39m
I did this in App\Providers\AppServiceProvider.php
{
View::composer('partials.header', 'App\Http\View\Composers\MenuComposer');
Schema::defaultStringLength(191);
}
But got this, I'm still learning, not sure how to resolve?
$ php artisan migrate --seed
Symfony\Component\Debug\Exception\FatalThrowableError : Class 'App\Providers\Schema' not found
at C:\wamp64_320\www\laravel_student\Laravel-Demo-Courses-Enrollment\app\Providers\AppServiceProvider.php:29
25| public function boot()
26| {
27| View::composer('partials.header', 'App\Http\View\Composers\MenuComposer');
28|
> 29| Schema::defaultStringLength(191);
30| }
31| }
32|
Exception trace:
1 App\Providers\AppServiceProvider::boot()
C:\wamp64_320\www\laravel_student\Laravel-Demo-Courses-Enrollment\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php:32
2 call_user_func_array([])
C:\wamp64_320\www\laravel_student\Laravel-Demo-Courses-Enrollment\vendor\laravel\framework\src\Illuminate\Container\BoundMethod.php:32
Please use the argument -v to see more details.
this should be MenuComposer
or it will give error
and we have another file called MenuComposer with wrong namespace but i think we will not use it in this project
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.