Git Product home page Git Product logo

laravel-demo-courses-enrollment's Introduction

Here's the original task description on Upwork:

Laravel students registration


We implemented the task with the help of our QuickAdminPanel and front-end theme called Etrain by Colorlib


Laravel students courses list

Laravel students registration form

Laravel students adminpanel


Database Schema

Created with MySQL Workbench - see video how to do it

Laravel students DB schema


How to use

  • Clone the repository with git clone
  • Copy .env.example file to .env and edit database credentials there
  • Run composer install
  • Run php artisan key:generate
  • Run php artisan migrate --seed (it has some seeded data for your testing)
  • That's it: launch the main URL.
  • You can login to adminpanel by going go /login URL and login with credentials [email protected] - password or institution user [email protected] - password

License

Basically, feel free to use and re-use any way you want.


More from our LaravelDaily Team

laravel-demo-courses-enrollment's People

Contributors

laraveldaily avatar marius-k avatar obaaa8 avatar povilaskorop avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

laravel-demo-courses-enrollment's Issues

Specified key was too long. But general fix doesn't work?

$ 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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.