hasanhatem

hasanhatem

Member Since 3 Years Ago

Experience Points
5,580
Total
Experience

4,420 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
45
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 2
5,580 XP
Sep
16
1 month ago
Activity icon

Started a new Conversation When I Required Selectize Js In Laravel Mix It Get Me Error Is Not A Function

Hello guys.

I use laravel mix. and i install Selectize.js with npm.

and i have selectize folder in

node_modules/selectize

i required selectize.js in bootstrap.js like that:

window._ = require('lodash');

/**
 * We'll load jQuery and the Bootstrap jQuery plugin which provides support
 * for JavaScript based Bootstrap features such as modals and tabs. This
 * code may be modified to fit the specific needs of your application.
 */

try {
    window.Popper = require('popper.js').default;
    window.$ = window.jQuery = require('jquery');

    // Get ckeditor
    window.CKEDITOR_BASEPATH = 'http://localhost/momtaz_academy/node_modules/ckeditor/';
    require('ckeditor');
    required('selectize');
    
} catch (e) {}

/**
 * We'll load the axios HTTP library which allows us to easily issue requests
 * to our Laravel back-end. This library automatically handles sending the
 * CSRF token as a header based on the value of the "XSRF" token cookie.
 */

window.axios = require('axios');

window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';

when i use selectize.js like that:

$('#city_id').selectize();

the console get me error:

Uncaught TypeError: $(...).selectize is not a function
    at HTMLDocument.<anonymous> (app.js:34112)
    at mightThrow (app.js:6916)
    at process (app.js:6984)

how can i solve it

Sep
08
1 month ago
Activity icon

Replied to SQLSTATE[42000]: Syntax Error Or Access Violation

Thank you, its work but with "UNSIGNED" I had another problem.

as you see in my code i get paginate for my users with some relation ship. after that i make a collection like that.

$users = User::whereHas('subscriptions', function ($q) {
                    $q->where([
                        'status' => 1
                    ]);
                })->with([
                    'subscriptions' => function ($q) {
                        $q->where([
                            'status' => 1
                        ]);
                    },'invoices' => function ($q) {
                        $q->withCount([
                            'payments as amount' => function ($q) {$q->select(DB::raw("CAST(SUM(amount) AS INTEGER)"));}
                        ]);
                    }])->whereHas('invoices')->paginate(30);

                $users->getCollection()->transform(function($row, $key) {
                    foreach ($row->invoices as $invoice) {
                        if ($invoice->amount < $invoice->total && $invoice->amount != 0) {
                            return $row;
                        }
                    }
                })->filter();

When I collect and filter for users I get free rows On the first page, it shows the required results, but on the second page it shows the results that I should not get Example: In this example I want to have partially paid bills. I get partially paid bills on the first page.

admin/financial-report/get

But on the second page, I get the results I do not want, for example, I get the invoice paid on a second page !!!!

admin/financial-report/get?page=2
Sep
07
1 month ago
Activity icon

Replied to SQLSTATE[42000]: Syntax Error Or Access Violation

how can i solve it on online server?

Activity icon

Started a new Conversation SQLSTATE[42000]: Syntax Error Or Access Violation

Hello Guys i have the code to get the invoices from my database. its work on localhost, But on online server it get me error.

the code is:

$users = User::whereHas('subscriptions', function ($q) {
                    $q->where([
                        'status' => 1
                    ]);
                })->with([
                    'subscriptions' => function ($q) {
                        $q->where([
                            'status' => 1
                        ]);
                    },'invoices' => function ($q) {
                        $q->withCount([
                            'payments as amount' => function ($q) {$q->select(DB::raw("CAST(SUM(amount) AS INTEGER)"));}
                        ]);
                }])->whereHas('invoices')->paginate(30);

it work perfectly on localhost. but on online server get me this error

SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'INTEGER) from `payments` where `invoices`.`id` = `payments`.`invoice_id`) as `am' at line 1 (SQL: select `invoices`.*, (select CAST(SUM(amount) AS INTEGER) from `payments` where `invoices`.`id` = `payments`.`invoice_id`) as `amount` from `invoices` where `invoices`.`user_id` in (12, 13, 14, 15, 16, 17, 18, 20, 21, 22, 23, 24, 26, 27, 28, 29, 30, 31, 32, 33, 37, 38, 39, 40, 44, 45, 46, 47, 48, 49) and `season_id` = 1)

can you help me?

Sep
03
1 month ago
Activity icon

Replied to Make Withdrawals At The Same Time For All Users At The Same Time

no one in LARACASTS can help me !!!?

Sep
01
1 month ago
Activity icon

Started a new Conversation Make Withdrawals At The Same Time For All Users At The Same Time

Hi guys, I am doing a site on Laravel. The idea of ​​the site is to display products, and for each product there are a number of cards, and let's assume: Product 1 has 100 cards. Users can purchase one or more cards. I need a method. When the purchase of all the cards in the products is complete, the site will automatically draw a drawing on the winning card. The problem is how to make users see the checkout process simultaneously for all users. For example, when generating the first card number. At the same moment, a user entered the withdrawal page. He should see the number that was generated and complete viewing the withdrawal process. Is javascript useful in this way? I need all withdrawals in Real Time at the same time.? can any one help me?

Jul
08
3 months ago
Activity icon

Started a new Conversation How Can I Make The Season Divided Into Three Months In Database?

Hello guys.

i have (Seasons Table) in my database.

Season table have:

id (int)
name (varchar)
start_date (date)
end_date (date)

The period of each season ends in three months.

example: Season 1 start in 1/1/2020 and end in: 1/3/2020.

How can I make the season divided into three months so that the user can register in whatever month he wants in this season.

Example: i have : user_1, user_2, user_3 and i have Season 1.

i need to allow to each user register in any months he want.

like: user_1 register in month_1 of the season_1.

user_2 register in month_2 and month_3 in season_1.

user_3 register in all season.

May
08
5 months ago
Activity icon

Replied to Production.ERROR: App/Notifications/MailResetPasswordNotification.php): Failed To Open Stream: No Such File Or Directory

@snapey i run the command composer dump and config:clear but i still have the same problem

Activity icon

Replied to Production.ERROR: App/Notifications/MailResetPasswordNotification.php): Failed To Open Stream: No Such File Or Directory

@snapey my friend when i run this command:

Route::get('/clear', function() {
    Artisan::call('cache:clear');
    Artisan::call('config:clear');
    Artisan::call('route:clear');
    return 'Ok';
});

it return this error:

[2020-05-08 23:12:30] production.ERROR: exec(): Unable to fork [stty 2&gt;&amp;1] {"exception":"[object] (ErrorException(code: 0): exec(): Unable to fork [stty 2&gt;&amp;1] at G:\PleskVhosts\sourity.com\Test\vendor\symfony\console\Terminal.php:69)
[stacktrace]
#0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'exec(): Unable ...', 'G:\\PleskVhosts\\...', 69, Array)

can i solve this problem. or can i run this command

php artisan config:clear
composer dump

on localhost and make changes on online server manually?? i am sorry but i have a lot of problems. because it the first time i handle with Plesk Server.

Activity icon

Started a new Conversation Production.ERROR: App/Notifications/MailResetPasswordNotification.php): Failed To Open Stream: No Such File Or Directory

Hello guys. i have laravel project on plesk server. and i set the root directory for my domain laravel\public to make the project run successfully.

now i trying to make {Forget User Password} to make user make a new password if he forget his password. on my localhost it work perfectly, but when i upload it to the Plesk server, i have this error.

[2020-05-08 22:18:17] production.ERROR: include(G:\PleskVhosts\sourity.com\Test\vendor\composer/../../app/Notifications/MailResetPasswordNotification.php): failed to open stream: No such file or directory {"exception":"[object] (ErrorException(code: 0): include(G:\PleskVhosts\sourity.com\Test\vendor\composer/../../app/Notifications/MailResetPasswordNotification.php): failed to open stream: No such file or directory at G:\PleskVhosts\sourity.com\Test\vendor\composer\ClassLoader.php:444)
[stacktrace]
#0 G:\PleskVhosts\sourity.com\Test\vendor\composer\ClassLoader.php(444): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'include(G:\\Ples...', 'G:\\PleskVhosts\\...', 444, Array)
#1 G:\PleskVhosts\sourity.com\Test\vendor\composer\ClassLoader.php(444): include()
#2 G:\PleskVhosts\sourity.com\Test\vendor\composer\ClassLoader.php(322): Composer\Autoload\includeFile('G:\\PleskVhosts\\...')
#3 [internal function]: Composer\Autoload\ClassLoader->loadClass('App\\Notificatio...')
#4 G:\PleskVhosts\sourity.com\Test\app\User.php(155): spl_autoload_call('App\\Notificatio...')
#5 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Auth\Passwords\PasswordBroker.php(67): App\User->sendPasswordResetNotification('5a56bcc8941a954...')
#6 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Foundation\Auth\SendsPasswordResetEmails.php(34): Illuminate\Auth\Passwords\PasswordBroker->sendResetLink(Array)
#7 [internal function]: App\Http\Controllers\Auth\ForgotPasswordController->sendResetLinkEmail(Object(Illuminate\Http\Request))
#8 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Routing\Controller.php(54): call_user_func_array(Array, Array)
#9 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Routing\ControllerDispatcher.php(45): Illuminate\Routing\Controller->callAction('sendResetLinkEm...', Array)
#10 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Routing\Route.php(219): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\Auth\ForgotPasswordController), 'sendResetLinkEm...')
#11 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Routing\Route.php(176): Illuminate\Routing\Route->runController()
#12 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Routing\Router.php(681): Illuminate\Routing\Route->run()
#13 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(130): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#14 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Routing\Middleware\SubstituteBindings.php(41): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#15 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#16 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\VerifyCsrfToken.php(76): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#17 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(Object(Illuminate\Http\Request), Object(Closure))
#18 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\View\Middleware\ShareErrorsFromSession.php(49): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#19 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#20 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Session\Middleware\StartSession.php(56): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#21 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#22 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse.php(37): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#23 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure))
#24 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\EncryptCookies.php(66): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#25 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure))
#26 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(105): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#27 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Routing\Router.php(683): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#28 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Routing\Router.php(658): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#29 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Routing\Router.php(624): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#30 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Routing\Router.php(613): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#31 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(170): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#32 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(130): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#33 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#34 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#35 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#36 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#37 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode.php(63): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#40 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))
#41 G:\PleskVhosts\sourity.com\Test\vendor\fideloper\proxy\src\TrustProxies.php(57): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#42 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Fideloper\Proxy\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(105): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(145): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#45 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(110): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#46 G:\PleskVhosts\sourity.com\Test\public\index.php(55): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#47 {main}
"} 

how can i solve this problem please?

May
02
5 months ago
Activity icon

Replied to Which Files Should Upload To Online Server After Install Laravel Passport

i need to upload just Laravel passport to the server. i have laravel app on the server bro.

Activity icon

Awarded Best Reply on Laravel Doesn't Found The New Controllers On Plesk Server

i had error in database sorry

Activity icon

Replied to Laravel Doesn't Found The New Controllers On Plesk Server

i had error in database sorry

Activity icon

Started a new Conversation Which Files Should Upload To Online Server After Install Laravel Passport

Hello guys, today i installed Laravel Passport on my local Laravel Project, and set my api. all things work perfectly. now i need to upload Laravel Passport on Live Server. Which files should i upload? to make Laravel Passport Works on live server.

Apr
23
6 months ago
Activity icon

Replied to Laravel Doesn't Found The New Controllers On Plesk Server

all routes in Admin folder it works successfully. yesterday i upload a new controller to my laravel app. and i show this errors. just on the new controller. @snapey

Activity icon

Replied to Laravel Doesn't Found The New Controllers On Plesk Server

my dear, i have the controller in Admin folder. all routes in Admin folder it works successfully. yesterday i upload a new controller to my laravel app. and i show this errors. just on the new controller. The routes and controllers worked successfully on localhost. but on online server not found the route. i must clear the cache but when i run that:

Route::get('/clear', function() {
    Artisan::call('cache:clear');
    Artisan::call('config:clear');
    Artisan::call('route:clear');
    return 'Ok';
});

i have the error:

production.ERROR: exec(): Unable to fork [stty 2&gt;&amp;1] {"userId":2,"exception":"[object] (ErrorException(code: 0): exec(): Unable to fork [stty 2&gt;&amp;1] at G:\PleskVhosts\sourity.com\Test\vendor\symfony\console\Terminal.php:69)

@snapey

Apr
22
6 months ago
Activity icon

Started a new Conversation Laravel Doesn't Found The New Controllers On Plesk Server

Hello guys. i trying to add a new controller and a new route in laravel 6. it worked on localhost. but not working on online server. I uploaded the new controller and update the web.php file.

when i visited my new url laravel.log tell me:

[previous exception] [object] (ReflectionException(code: -1): Class App\Http\Controllers\Admin\ContactUsController does not exist

my web.php:

Route::get('admin/messages', 'Admin\[email protected]')->name('admin.messages.index')->middleware('can:show_messages');

and i have the ContactUsController in admin folder.

i tried to clear cache but i cannot, i don't know why. i have in .env file:

CACHE_DRIVER=file

and in my web.php:

Route::get('/clear', function() {
    Artisan::call('cache:clear');
    Artisan::call('config:clear');
    Artisan::call('route:clear');
    return 'Ok';
});

and again it worked in local server, but on online server not worked i have error like that:

production.ERROR: exec(): Unable to fork [stty 2&gt;&amp;1] {"userId":2,"exception":"[object] (ErrorException(code: 0): exec(): Unable to fork [stty 2&gt;&amp;1] at G:\PleskVhosts\sourity.com\Test\vendor\symfony\console\Terminal.php:69)
Activity icon

Replied to All Insert Request In Laravel Return (500 Server Error) On Plesk Server

thank you i had errors in my database.

Apr
21
6 months ago
Activity icon

Started a new Conversation All Insert Request In Laravel Return (500 Server Error) On Plesk Server

I upload my Laravel project on Plesk Server.

Firstly, i had (500 server error) on all routes. but i solved this problem when i set (ROOT directory) to (laravel\public).

But now i have an (500 Server Error) in all insert requests. how can solve this problem on Plesk server.

i show on the google the .htaccess file don't work on Plesk server, so i have to worked on (public/web.config) but i don't have any details how can i deal with the file. the web.config content:

    <rewrite>
      <rules>
        <rule name="Imported Rule 1" stopProcessing="true">
          <match url="^(.*)/$" ignoreCase="false" />
          <conditions>
            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
          </conditions>
          <action type="Redirect" redirectType="Permanent" url="/{R:1}" />
        </rule>
        <rule name="Imported Rule 2" stopProcessing="true">
          <match url="^" ignoreCase="false" />
          <conditions>
            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
            <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
          </conditions>
          <action type="Rewrite" url="index.php" />
        </rule>
      </rules>
    </rewrite>
  </system.webServer>
</configuration>```

when i insert something in database this is an error larave.log:


```[2020-04-21 10:42:55] production.ERROR: SQLSTATE[HY000]: General error: 1364 Field 'id' doesn't have a default value (SQL: insert into `stock_markets` (`country_id`, `updated_at`, `created_at`) values (1, 2020-04-21 10:42:55, 2020-04-21 10:42:55)) {"userId":2,"exception":"[object] (Illuminate\Database\QueryException(code: HY000): SQLSTATE[HY000]: General error: 1364 Field 'id' doesn't have a default value (SQL: insert into `stock_markets` (`country_id`, `updated_at`, `created_at`) values (1, 2020-04-21 10:42:55, 2020-04-21 10:42:55)) at G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Database\Connection.php:669)
[stacktrace]
#0 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Database\Connection.php(629): Illuminate\Database\Connection->runQueryCallback('insert into `st...', Array, Object(Closure))
#1 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Database\Connection.php(464): Illuminate\Database\Connection->run('insert into `st...', Array, Object(Closure))
#2 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Database\Connection.php(416): Illuminate\Database\Connection->statement('insert into `st...', Array)
#3 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Database\Query\Processors\Processor.php(32): Illuminate\Database\Connection->insert('insert into `st...', Array)
#4 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Database\Query\Builder.php(2695): Illuminate\Database\Query\Processors\Processor->processInsertGetId(Object(Illuminate\Database\Query\Builder), 'insert into `st...', Array, 'id')
#5 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Builder.php(1366): Illuminate\Database\Query\Builder->insertGetId(Array, 'id')
#6 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Model.php(839): Illuminate\Database\Eloquent\Builder->__call('insertGetId', Array)
#7 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Model.php(804): Illuminate\Database\Eloquent\Model->insertAndSetId(Object(Illuminate\Database\Eloquent\Builder), Array)
#8 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Model.php(667): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#9 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Builder.php(765): Illuminate\Database\Eloquent\Model->save()
#10 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Support\helpers.php(422): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\StockMarket))
#11 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Builder.php(766): tap(Object(App\StockMarket), Object(Closure))
#12 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#13 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Model.php(1620): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#14 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Model.php(1632): Illuminate\Database\Eloquent\Model->__call('create', Array)
#15 G:\PleskVhosts\sourity.com\Test\app\Http\Controllers\Admin\StockMarketController.php(45): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#16 [internal function]: App\Http\Controllers\Admin\StockMarketController->store(Object(App\Http\Requests\StoreStockMarket))
#17 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Routing\Controller.php(54): call_user_func_array(Array, Array)
#18 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Routing\ControllerDispatcher.php(45): Illuminate\Routing\Controller->callAction('store', Array)
#19 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Routing\Route.php(219): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\Admin\StockMarketController), 'store')
#20 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Routing\Route.php(176): Illuminate\Routing\Route->runController()
#21 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Routing\Router.php(681): Illuminate\Routing\Route->run()
#22 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(130): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#23 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Auth\Middleware\Authorize.php(45): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#24 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Auth\Middleware\Authorize->handle(Object(Illuminate\Http\Request), Object(Closure), 'control_stock_m...')
#25 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Auth\Middleware\Authorize.php(45): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Auth\Middleware\Authorize->handle(Object(Illuminate\Http\Request), Object(Closure), 'login_to_contro...')
#27 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Routing\Middleware\SubstituteBindings.php(41): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#29 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Auth\Middleware\Authenticate.php(43): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#30 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Auth\Middleware\Authenticate->handle(Object(Illuminate\Http\Request), Object(Closure))
#31 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\VerifyCsrfToken.php(76): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#32 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(Object(Illuminate\Http\Request), Object(Closure))
#33 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\View\Middleware\ShareErrorsFromSession.php(49): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#34 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#35 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Session\Middleware\StartSession.php(56): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#36 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#37 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse.php(37): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\EncryptCookies.php(66): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#40 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure))
#41 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(105): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#42 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Routing\Router.php(683): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#43 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Routing\Router.php(658): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#44 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Routing\Router.php(624): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#45 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Routing\Router.php(613): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#46 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(170): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#47 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(130): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#48 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#49 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#50 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#51 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#52 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#53 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#54 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode.php(63): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#55 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))
#56 G:\PleskVhosts\sourity.com\Test\vendor\fideloper\proxy\src\TrustProxies.php(57): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#57 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Fideloper\Proxy\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#58 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(105): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#59 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(145): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#60 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(110): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#61 G:\PleskVhosts\sourity.com\Test\public\index.php(55): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#62 {main}

[previous exception] [object] (PDOException(code: HY000): SQLSTATE[HY000]: General error: 1364 Field 'id' doesn't have a default value at G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Database\Connection.php:463)
[stacktrace]
#0 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Database\Connection.php(463): PDOStatement->execute()
#1 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Database\Connection.php(662): Illuminate\Database\Connection->Illuminate\Database\{closure}('insert into `st...', Array)
#2 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Database\Connection.php(629): Illuminate\Database\Connection->runQueryCallback('insert into `st...', Array, Object(Closure))
#3 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Database\Connection.php(464): Illuminate\Database\Connection->run('insert into `st...', Array, Object(Closure))
#4 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Database\Connection.php(416): Illuminate\Database\Connection->statement('insert into `st...', Array)
#5 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Database\Query\Processors\Processor.php(32): Illuminate\Database\Connection->insert('insert into `st...', Array)
#6 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Database\Query\Builder.php(2695): Illuminate\Database\Query\Processors\Processor->processInsertGetId(Object(Illuminate\Database\Query\Builder), 'insert into `st...', Array, 'id')
#7 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Builder.php(1366): Illuminate\Database\Query\Builder->insertGetId(Array, 'id')
#8 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Model.php(839): Illuminate\Database\Eloquent\Builder->__call('insertGetId', Array)
#9 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Model.php(804): Illuminate\Database\Eloquent\Model->insertAndSetId(Object(Illuminate\Database\Eloquent\Builder), Array)
#10 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Model.php(667): Illuminate\Database\Eloquent\Model->performInsert(Object(Illuminate\Database\Eloquent\Builder))
#11 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Builder.php(765): Illuminate\Database\Eloquent\Model->save()
#12 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Support\helpers.php(422): Illuminate\Database\Eloquent\Builder->Illuminate\Database\Eloquent\{closure}(Object(App\StockMarket))
#13 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Builder.php(766): tap(Object(App\StockMarket), Object(Closure))
#14 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Support\Traits\ForwardsCalls.php(23): Illuminate\Database\Eloquent\Builder->create(Array)
#15 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Model.php(1620): Illuminate\Database\Eloquent\Model->forwardCallTo(Object(Illuminate\Database\Eloquent\Builder), 'create', Array)
#16 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Database\Eloquent\Model.php(1632): Illuminate\Database\Eloquent\Model->__call('create', Array)
#17 G:\PleskVhosts\sourity.com\Test\app\Http\Controllers\Admin\StockMarketController.php(45): Illuminate\Database\Eloquent\Model::__callStatic('create', Array)
#18 [internal function]: App\Http\Controllers\Admin\StockMarketController->store(Object(App\Http\Requests\StoreStockMarket))
#19 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Routing\Controller.php(54): call_user_func_array(Array, Array)
#20 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Routing\ControllerDispatcher.php(45): Illuminate\Routing\Controller->callAction('store', Array)
#21 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Routing\Route.php(219): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Http\Controllers\Admin\StockMarketController), 'store')
#22 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Routing\Route.php(176): Illuminate\Routing\Route->runController()
#23 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Routing\Router.php(681): Illuminate\Routing\Route->run()
#24 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(130): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#25 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Auth\Middleware\Authorize.php(45): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#26 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Auth\Middleware\Authorize->handle(Object(Illuminate\Http\Request), Object(Closure), 'control_stock_m...')
#27 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Auth\Middleware\Authorize.php(45): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#28 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Auth\Middleware\Authorize->handle(Object(Illuminate\Http\Request), Object(Closure), 'login_to_contro...')
#29 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Routing\Middleware\SubstituteBindings.php(41): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#30 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#31 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Auth\Middleware\Authenticate.php(43): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#32 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Auth\Middleware\Authenticate->handle(Object(Illuminate\Http\Request), Object(Closure))
#33 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\VerifyCsrfToken.php(76): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#34 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(Object(Illuminate\Http\Request), Object(Closure))
#35 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\View\Middleware\ShareErrorsFromSession.php(49): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#36 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#37 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Session\Middleware\StartSession.php(56): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#38 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#39 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse.php(37): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#40 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure))
#41 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\EncryptCookies.php(66): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#42 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure))
#43 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(105): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#44 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Routing\Router.php(683): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#45 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Routing\Router.php(658): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#46 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Routing\Router.php(624): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#47 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Routing\Router.php(613): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#48 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(170): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#49 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(130): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#50 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#51 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#52 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#53 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#54 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#55 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#56 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode.php(63): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#57 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure))
#58 G:\PleskVhosts\sourity.com\Test\vendor\fideloper\proxy\src\TrustProxies.php(57): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#59 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(171): Fideloper\Proxy\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#60 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php(105): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#61 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(145): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#62 G:\PleskVhosts\sourity.com\Test\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(110): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#63 G:\PleskVhosts\sourity.com\Test\public\index.php(55): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#64 {main}
"}