MGanjKhani

MGanjKhani

Member Since 10 Months Ago

Experience Points
200
Total
Experience

4,800 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
0
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start your engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-in-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

Level 1
200 XP
Sep
20
1 week ago
Activity icon

Replied to Laravel 7 Segmentation Fault (core Dumped) When Try To Login

This error happens in Laravel ORM not in PHP pure. I use ODBC driver 10.0.1 with no problem.

Activity icon

Replied to Laravel 7 Segmentation Fault (core Dumped) When Try To Login

I saw that and send it in this chat before

Activity icon

Awarded Best Reply on Laravel 7 Segmentation Fault (core Dumped) When Try To Login

Thanks GOD! I found the solution:

in app/Providers/AppServiceProvider.php we should add this line:

use Doctrine\DBAL\Driver\Vertica\VerticaDriver;
Activity icon

Replied to Laravel 7 Segmentation Fault (core Dumped) When Try To Login

Thanks GOD! I found the solution:

in app/Providers/AppServiceProvider.php we should add this line:

use Doctrine\DBAL\Driver\Vertica\VerticaDriver;
Activity icon

Replied to Laravel 7 Segmentation Fault (core Dumped) When Try To Login

Thanks a lot, I hope that we can solve this problem.

Sep
19
1 week ago
Activity icon

Replied to Laravel 7 Segmentation Fault (core Dumped) When Try To Login

When I run:

composer require mixartemev/dbal-vertica-driver

Terminal shows:

Using version ^1.3 for mixartemev/dbal-vertica-driver
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
Generating optimized autoload files

Does it help to solve my problem?

Activity icon

Replied to Laravel 7 Segmentation Fault (core Dumped) When Try To Login

Yes, after adding these lines I get that error:

public function boot()
    {
        App::bind('db.connector.vertica', function () {
            return new VerticaDriver;
        });
        DB::resolverFor('vertica', function ($connection, $database, $prefix, $config) {
            return new VerticaConnection($connection, $database, $prefix, $config);
        });
    }
Activity icon

Replied to Laravel 7 Segmentation Fault (core Dumped) When Try To Login

I do that, yes I still get this:

Unsupported driver [vertica] exception.
Activity icon

Replied to Laravel 7 Segmentation Fault (core Dumped) When Try To Login

OK, I checked, this is config/database.php:

 'connections' => [
        'vertica' => [
            'driver' => 'vertica',
            'host' => env('DB_HOST_VERTICA', '127.0.0.1'),
            'port' => env('DB_PORT_VERTICA', 5433), //EXACTLY DIGITS, NOT STRING
            'database' => env('DB_DATABASE_VERTICA', 'forge'),
            'username' => env('DB_USERNAME_VERTICA', 'forge'),
            'password' => env('DB_PASSWORD_VERTICA', ''),
            'schema' => 'public',
            'sslmode' => 'allow',
            'options' => [
                PDO::ATTR_EMULATE_PREPARES => false,
            ]
        ],
Activity icon

Replied to Laravel 7 Segmentation Fault (core Dumped) When Try To Login

Now I have new error in terminal:

InvalidArgumentException
  Unsupported driver [vertica].

  at vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php:287
    283|             case 'sqlsrv':
    284|                 return new SqlServerConnection($connection, $database, $prefix, $config);
    285|         }
    286|
  > 287|         throw new InvalidArgumentException("Unsupported driver [{$driver}].");
    288|     }
    289| }
    290|

+6 vendor frames
  7   app/Providers/AppServiceProvider.php:32
      Illuminate\Support\Facades\Facade::__callStatic()

      +8 vendor frames
  16  [internal]:0
      Illuminate\Foundation\Application::Illuminate\Foundation\{closure}()

   Whoops\Exception\ErrorException

  Module 'odbc' already loaded

  at Unknown:0
    1|

      +1 vendor frames
  2   [internal]:0
      Whoops\Run::handleShutdown()
Sep
17
1 week ago
Activity icon

Replied to Laravel 7 Segmentation Fault (core Dumped) When Try To Login

Do not run Composer as root/super user! See https://getcomposer.org/root for details
Using version ^1.3 for mixartemev/dbal-vertica-driver
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files
10 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Activity icon

Replied to Laravel 7 Segmentation Fault (core Dumped) When Try To Login

public function boot()
    {
        App::bind('db.connector.vertica', function () {
            return new VerticaDriver;
        });
        DB::resolverFor('vertica', function ($connection, $database, $prefix, $config) {
            return new PostgresConnection($connection, $database, $prefix, $config);
        });
    }
Activity icon

Replied to Laravel 7 Segmentation Fault (core Dumped) When Try To Login

@sinnbeck I check again and get this error:

InvalidArgumentException Unsupported driver [vertica].

Activity icon

Replied to Laravel 7 Segmentation Fault (core Dumped) When Try To Login

@bobbybouwmann @sinnbeck thaks for your rsponse But nothing happened and the problem is still alive!

@bobbybouwmann I check storage/logs but there was no log about my problem. @sinnbeck I do all of the instruction commands and install DBAL Vertica driver but I get segmentation fault again.

Activity icon

Started a new Conversation Laravel 7 Segmentation Fault (core Dumped) When Try To Login

I use laravel 7 and HP Vertica as a database. I connect to DB with odbc. when I use raw query such as "select" it works fine, but when I try to login "Segmentation fault (core dumped)" occurs. Any idea?