Browse AI Field GuideForum Podcast
All ThreadsLeaderboard
  1. Discussions

    1. Popular This Week
    2. Popular All Time
    3. Solved
    4. Unsolved
    5. No Replies Yet

amitsachdeva45's avatar

PDO Exception: Could not find driver while phpunit test

Hi, I am working on Laravel 5.5 Phpunit test. I am getting error ** PDO Exception: could not find driver** Laravel= 5.5 Php = 7.1.3 Phpunit = 7.5 Can anyone suggest me how to solve this issue? Thanks in advance error:PDOException: could not find driver in /home/workland/Downloads/project/marketplace-api/src/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:27\n St

amitsachdeva45's avatar
amitsachdeva45's avatar Nakov6yrs agoLaravel
1
1
Last reply by Nakov 6yrs ago
johncarter's avatar

signedRoute in test causes BadMethodCallException

Rightly or wrongly, I'm using a signedRoute in my users.update route to protect users modifying the user id of the edit user form. Please tell me if that is bad news and tell me another way around it if possible. Anyway, as a result when I write a test I get a BadMethodCallException: Method Illuminate\Support\Arr::query does not exist. error and I don't why. Can someone help me

johncarter's avatar
johncarter's avatar johncarter6yrs agoTesting
1
1
Last reply by johncarter 6yrs ago
trogne's avatar

dusk/phpunit test using homestead db instead of sqlite

Running the test below, with phpunit ./tests/Browser/NotesTest.php --filter a_user_can_delete_notes I see my homestead db being changed, instead of sqlite db ! Why is that ? public function a_user_can_delete_notes() { $user = factory(User::class)->create(); $notes = factory(Note::class, 2)->create([ 'user_id' => $user->id

trogne's avatar
trogne's avatar trogne6yrs agoLaravel
7
1
Last reply by trogne 6yrs ago
hmmehead's avatar

flow for test validation

Hello Guy's! What would be the best way to test a validation request? For example. If a class has 4 attributes, all required, and one of them with a minimum of letters, and another being of type email. It would be wise to test all possibilities, such as a test for filled fields or not, or if the attribute has the number of letters or just make sure that an error message is disp

hmmehead's avatar
hmmehead's avatar Talinon6yrs agoTesting
4
1
Last reply by Talinon 6yrs ago
mcbates's avatar

How to test if scheduler only runs at given times?

I have a weekly summary email that I trigger via the scheduler in app/Console/Kernel.php: protected function schedule(Schedule $schedule) { $schedule->call(new NotificationController)->weeklyOn(6, '8:00'); } It does work in real life, but I have problems testing it, because it supposedly sent the mail on other days as well. /** @test */ function it_only_s

mcbates's avatar
mcbates's avatar mcbates6yrs agoGeneral
2
1
Last reply by mcbates 6yrs ago
Krlinhos's avatar

Behat test not overwrite .env values

Hello, I have a project with a .env file and other .env.behat The problem is when I run the tests the values for variables are .env values instead of .env.behat I have realized that if I have a variable in .env.behat and not in .env this value is as expected, but if I have the variable in both files, the value always is from .env file behat.yml: default: extensions:

Krlinhos's avatar
Krlinhos's avatar Krlinhos6yrs agoGeneral
0
1
mechelon's avatar

Test passes auth middleware but fails Auth::user() with data providers

I am testing my application (5.8) with the integrated PHPUnit configuration and I have problems with the authentication of a user inside a test. I have this test (shortened) public function testShowEditForm($user, $expectedStatus, $expectedLocation, $expectedSee, $expectedDontSee) { if ($user !== null) $this->actingAs($user); // $this->assertAuthenticated

mechelon's avatar
mechelon's avatar mechelon6yrs agoTesting
2
1
Last reply by mechelon 6yrs ago
shadrix's avatar

Phpunit test slow - on local machine 3 minutes on GitLab-CI 44 minutes

Do you have any tips on what I can do about this? I have 745 tests that I am testing before deploying, however on GitLab-CI it takes ages to complete them. I run 3 workes at the time, but still. I'm considering to rewrite every test so I don't need to call resfreshDatabase-Trait. But still that's tough... Any ideas? How/when and where do you test your app?

shadrix's avatar
shadrix's avatar shadrix5yrs agoGeneral
2
1
Last reply by shadrix 5yrs ago
WVA's avatar

PhpUnit test date which is casted as carbon instance and saved as a date

Hi, I'm currently trying to make a test which asserts that a record has been stored in the database. The Environment model has an attribute 'ed_split' which is casted as Carbon date, by defining this on the model: protected $dates = ['ed_split']; As this is only a date and not a datetime, it's stored as such in the database $table->date('ed_split'); In my Factory I create

WVA's avatar
WVA's avatar WVA6yrs agoTesting
1
1
Last reply by WVA 6yrs ago
xtopher's avatar

Package Test

how can I run laravel phpunit test for different packages that is packages in the vendors folder

xtopher's avatar
xtopher's avatar xtopher6yrs agoLaravel
2
1
Last reply by xtopher 6yrs ago
spacedog4's avatar

Unexpected error with sync method in test environment

Laravel 5.8.34 we have 3 tables, roles, permissions and the pivot table role_permission that does not have an ID this line of code works well in the browser // Role.php $this->permissions()->sync($permission); but in my test environment I get this error where he tries to put the permissions fields in my pivot table Unknown column 'id' in 'field list' (SQL: insert into `r

spacedog4's avatar
spacedog4's avatar spacedog46yrs agoLaravel
0
1
davy_yg's avatar

Test Purpose

I wonder why would you write laravel test code when you can actually check the result directly on the program?

davy_yg's avatar
davy_yg's avatar Punksolid6yrs agoLaravel
7
1
Last reply by Punksolid 6yrs ago
gocanto's avatar

Test coverage

Hi Guys, I have a question regarding the phpunit tests coverage tool. Say, I have this code: function foo(): void { if ($foo === true) { return; } throw new Exception('some error'); } Even though I have a full tests suit that covers the whole function, phpunit marks this file as not completed coverage due to the exception at the end of the function.

gocanto's avatar
gocanto's avatar impbob6yrs agoTesting
8
1
Last reply by impbob 6yrs ago
shadrix's avatar

Would you still phpunit test on the server before deployment?

I'm currently reading this: https://docs.gitlab.com/ee/ci/examples/laravel_with_gitlab_and_envoy/index.html And now I wonder, would you still test your code on the server via docker although your testing is fine locally on your computer? When does it make sense?

shadrix's avatar
shadrix's avatar Resin6yrs agoGeneral
1
1
Last reply by Resin 6yrs ago
nicolaslima321's avatar

Exception when trying to test RefreshToken

PHP Version: 7.2 Laravel Version: 6.0 Laravel Passport Version: 7.2 Hi Everyone! In last days i'm been dealing with some difficults to make tests for an API that uses Laravel Passport. The trouble is when i do one of my feature tests, i have to test if i can login an user that i created before, after log this test user, i need to refresh his token, i tried to do this directly

nicolaslima321's avatar
nicolaslima321's avatar nicolaslim...6yrs agoLaravel
0
1
mayen222's avatar

Test throws BadMethodCallException : Method Illuminate\Database\Eloquent\Collection::

Hi, I'm doing a test that adds a profile to a user. When I run it with Tinker works fine, it saves the profile and can return it. But when I do it on the test (I'm trying to practice TDD) it says BadMethodCallException: Method Illuminate\Database\Eloquent\Collection::profile does not exist. It fails on $user->profile()->save($profile); But both models have the relations a

mayen222's avatar
mayen222's avatar mayen2226yrs agoTesting
2
1
Last reply by mayen222 6yrs ago
clarg18's avatar

Get more infomation on test failure

Hello, I would like to know why this test failed: /** @test */ public function purchaseOrderAddedViaStoreMethod() { $this->withoutExceptionHandling(); $this->actingAs(factory(User::class)->create()); factory(Supplier::class)->create(); factory(Staff::class)->create(); $response = $this->post('/po', $this->data()); $this->assertCo

clarg18's avatar
clarg18's avatar mabdullahs...6yrs agoTesting
1
1
Last reply by mabdullahsari 6yrs ago
devk's avatar

How to test Personal Access Token with Passport?

So I have this in my controller: public function sendSimple( SimpleNotificationRequest $request ) { auth() ->user() ->notifications() ->forceCreate([ 'user_id' => auth()->id(), 'oauth_auth_code_id' => auth()->user()->token()->id, // ?? // ... other stuff ]); // other stuf

devk's avatar
devk's avatar devk6yrs agoTesting
0
1
crnkovic's avatar

Rollback database after each test method

Hey, I've got bunch of tests that used to run on Sqlite in memory database and it all works fine. Now that I need to run it against an actual MySQL database, errors keep on coming. I need database to be fresh (no data in it) each time a test function runs (not a test class, but each test method). I've been using RefreshDatabase trait which does the trick. Or doesn't. I have no

crnkovic's avatar
crnkovic's avatar bobbybouwm...6yrs agoTesting
3
1
Last reply by bobbybouwmann 6yrs ago
Lestah's avatar

Array to string conversion Feature Test

/** * Add. test pass * * @test * @group feature * @group feature:setting * @group settings.index * @return void */ public function a_user_can_save_preferred_date_format() { // Arrangements $this->withoutExceptionHandling(); $this->actingAs($user = $this->asNonSuperAdmin(['settings.store', 'sett

Lestah's avatar
Lestah's avatar Lestah6yrs agoTesting
5
1
Last reply by Lestah 6yrs ago
mcbates's avatar

Customize test stub with test annotation instead of having to prefix test_?

Is there an easy way to swap the comments in test stubs that artisan creates (php artisan make:test ExampleTest)? So, whenever I create a test, instead of /** * A basic feature test example. * * @return void I would like (per default) /** @test */ I change it dozens of times per day and would love to automate it. (Sidenote: In 80% of TDD tutorials and videos I s

mcbates's avatar
mcbates's avatar Sti3bas6yrs agoTesting
1
1
Last reply by Sti3bas 6yrs ago
Lestah's avatar

Laravel Feature Test

Im trying this test but it says failed asserting that false is true this is just a simple test so user can visit the settings page /** * * @test * @group feature * @group feature:setting * @group settings.preferences * @return void */ public function a_user_can_visit_the_settings_page() { // Arrangements // $this-&g

Lestah's avatar
Lestah's avatar Lestah6yrs agoTesting
6
1
Last reply by Lestah 6yrs ago
untymage's avatar

Should i write a test for each model which have polymorphic relationship?

So if i set up polymorphic relation between comment vsThread and Video etc.. Should i write a test for every model which haveMany comments ? for example public function a_user_can_comment_on_video (){ //same code } public function a_user_can_comment_on_thread (){ //same code }

untymage's avatar
untymage's avatar mstrauss6yrs agoTesting
3
1
Last reply by mstrauss 6yrs ago
DreiAugenFrosch's avatar

Test (temporary) signed routes with PHPUnit

Hey guys! I have a temporary signed route to change the email of an user. Now I want to test this route with PHPUnit. But when I try to get the route, I get an "403 Error" (of course). Is there any smart way to solve this, or do I have to create a new signed route manually and use this for my get request? Thanks for your help :)

DreiAugenFrosch's avatar
DreiAugenFrosch's avatar janosk6yrs agoTesting
3
1
Last reply by janosk 6yrs ago
KingsleyO's avatar

How to test scheduled tasks on localhost

I just set up task schedule to bump up a user's post to the top every minute for a week using this public function registerSchedule($schedule) { $start = Carbon::now(); $end = $start->addDays(7); $schedule->call('Corymillz\Advert\Component\PaidBoost@onPaidBoost')->everyMinute()->between($start, $end); } The function already been wr

KingsleyO's avatar
KingsleyO's avatar KingsleyO6yrs agoLaravel
2
3
Last reply by KingsleyO 6yrs ago
flyingL123's avatar

Mocked class in another test treated as though it exists

Using Laravel 5.8, I have the following 2 tests within the same test class: /** * @test */ public function a_procurement_group_can_be_created_or_fetched_from_odoo_for_this_shipment() { $shipment = InboundShipment::make(); $group = $this->mock(ProcurementGroup::class, function($group) { $group->shouldReceive('findByNameOrCreate') ->with('f

flyingL123's avatar
flyingL123's avatar flyingL1236yrs agoTesting
4
1
Last reply by flyingL123 6yrs ago
Mindexperiment's avatar

Test with Orchestra class not found

Hi, I'm setting up an environment to test a new package for a newsletter. I need to use Orchestra to run tests on the package but when I try to vendor/bin/phpunit vendor/agpretto/newsletter I get a PHP Fatal error: Class 'Agpretto\Newsletter\Tests\Integration\IntegrationTestCase' not found in /var/www/vhosts/xxx.com/vendor/agpretto/newsletter/tests/Integration/NewsletterTest.ph

Mindexperiment's avatar
Mindexperiment's avatar bpuig5yrs agoTesting
2
5
Last reply by bpuig 5yrs ago
dynait's avatar

Test assertViewIs failed when a blade contains <body> HTML element

Hello guys, Today i faced a very weird issue while i was testing my application. As you have already seen from the title the <body> HTML element inside a blade transforms the test response into a string type instead of a View. Application: Laravel 5.8.33 PHPUnit 7.5.15 PHP 7.1.31 I have the following blades: layouts.static-top.default.php default.blade.php The default

dynait's avatar
dynait's avatar dynait3yrs agoTesting
1
1
Last reply by dynait 3yrs ago
rudexpunx's avatar

Dusk test: Browser apparently works with different DB

My test <?php namespace Tests\Browser; use App\Models\User; use Illuminate\Foundation\Testing\DatabaseMigrations; use Illuminate\Support\Facades\Hash; use Laravel\Dusk\Browser; use Tests\DuskTestCase; class LoginTest extends DuskTestCase { use DatabaseMigrations; /** @test */ public function testLogin() { $user = factory(User::class)->create([

rudexpunx's avatar
rudexpunx's avatar bearcodi6yrs agoTesting
3
2
Last reply by bearcodi 6yrs ago
trevorpan's avatar

feedback: on a functioning orders test

good afternoon ~ Have been working on this test for quite some time. I think I have it whipped! But want to see if anyone sees any flaws. I found a few basic orders product_order product type posts and restructured my tables based on these. https://dba.stackexchange.com/questions/135054/mysql-what-to-store-in-orders-or-product-order https://laracasts.com/discuss/channels/eloque

trevorpan's avatar
trevorpan's avatar trevorpan6yrs agoTesting
0
1
trevorpan's avatar

access $variable property in test method

Have been working on this test for a while with help from a previous post. I'm really happy to get the paymentGateway working after a few days by myself without posting. That was a tough thing to get passing. Hit a snag here, it's so close but thought someone more experienced can help out. I know it's a very basic thing, but I've tried using some techniques here: https://www.ph

trevorpan's avatar
trevorpan's avatar trevorpan6yrs agoTesting
2
1
Last reply by trevorpan 6yrs ago
sanjitsingh's avatar

RefreshDatabase not rolling back the transaction after running test

Hi there, I am using mysql as a testing database. I am trying to rollback the changes after each test using RefreshDatabase trait but it is not working. use RefreshDatabase; protected $connectionsToTransact = [ 'mysql_testing' ]; /** @test */ public function user_can_add_custom_field() { $this->signIn(); $attributes = [

sanjitsingh's avatar
sanjitsingh's avatar mware6yrs agoTesting
2
1
Last reply by mware 6yrs ago
petritr's avatar

unit test relations

I have complex relations, witch is the best way to test relations ? Any best practice examples ?

petritr's avatar
petritr's avatar tykus6yrs agoTesting
5
1
Last reply by tykus 6yrs ago
catsedawk's avatar

testing: RefreshDatabase trait with seeder (for every single test)

I am trying to use the 'RefreshDatabase' trait. What I'm looking for is that for every test the db is migrated fresh and then seeded with some vital rows. If i do this with a single test function it all works but if i have several test functions it seems the seed isnt executed anymore.. i tried: class MyTest extends TestCase { use RefreshDatabase; protected function se

catsedawk's avatar
catsedawk's avatar catsedawk6yrs agoTesting
2
1
Last reply by catsedawk 6yrs ago
trevorpan's avatar

findOrFail($jobId); returns 404 but test creates $job

error: Symfony\Component\HttpKernel\Exception\NotFoundHttpException: POST http://bidbird.test/jobs//bidreserve As you can see above, the $job->id is not found. class BidReservesController extends Controller { private $paymentGateway; public function __construct(PaymentGateway $paymentGateway) { $this->middleware('auth'); $this->paymentGatew

trevorpan's avatar
trevorpan's avatar trevorpan6yrs agoTesting
6
1
Last reply by trevorpan 6yrs ago
farshadf's avatar

laravel show unit test is not asserting.

i have a laravel application that i want to write tests for now when i run show test its not working and i am writing this test for my api btw : so my test is like below : public function testShow() { $response = $this->json('GET', '/api/roomfacility/{roomfacility}', []); $response->assertStatus(200); } but i get this error : 20) Tests\Feature\RoomCapaci

farshadf's avatar
farshadf's avatar tykus6yrs agoLaravel
1
1
Last reply by tykus 6yrs ago
alexom's avatar

How can I make a python based test series for my website?

Looking for tips and guidance to prepare a test series for my website like EduGorilla, GradeUp, etc. I also want to get into this stuff.

alexom's avatar
alexom's avatar alexom6yrs agoGeneral
1
1
BrownieCoffee's avatar

What test choose between Unit , Feature and Dusk test ?

Hi there, I have doubts about different tests that Laravel offers. How to know what type of test to use, especially between Feature Test and Dusk test ? My last question is : Is it necessary to create unit test ? I don't know how to apply that because I use actually my Feature Test... Thank you by advance !

BrownieCoffee's avatar
BrownieCoffee's avatar audunru6yrs agoTesting
3
1
Last reply by audunru 6yrs ago
lara66806's avatar

How to test succesful POST of an entity when validated column is merged into request

Hi All! I have a unique scenario that allows me to not test on of my Routes. I have a Post with the column author_id which I am trying to include after the form request so that it forces the post author_id to be the Authenticated user. This prevents a malicious User from changing a User ID in the form fields and adding a Post as a different User. However... I've found that I ca

lara66806's avatar
lara66806's avatar ajduff146yrs agoRequests
3
1
Last reply by ajduff14 6yrs ago
BrownieCoffee's avatar

Unit/Feature Test : test if radio button is checked or not .

Hi there. I'm trying to do test on a form. I want to test if, there a radio button is not checked, the errors displayed. Actually. My test fails. //my database structure: categories ____________ -id -name -categorizable_id -categorizable_type projects _________ -id -user_id -title -thumbnail -material_id -content materials __________ -id -name users ______ -id -

BrownieCoffee's avatar
BrownieCoffee's avatar BrownieCof...6yrs agoTesting
7
1
Last reply by BrownieCoffee 6yrs ago
rfountain's avatar

How to Mock a dependency injection in Controller Test isolation

I'm trying to test my controllers in isolation by mocking one of my eloquent models. I can mock the model in my test $this->mock = Mockery::mock(Server::class); $this->app->instance(Server::class, $this->mock); $this->mock->shouldReceive('delete')->once()->andReturn('deleted'); $this->call('delete', 'server/1'); The problem I'm having is my contro

rfountain's avatar
rfountain's avatar rfountain6yrs agoTesting
7
3
Last reply by rfountain 6yrs ago
hakhsin's avatar

Best filesystem config practice on test environment

Hi, what is the best practice for config laravel filesystem on test environment for testing file uploads? I have config my test environment like this: In filesystems.php I added: 'disks' => [ #... 'test' => [ 'driver' => 'local', 'root' => storage_path('framework/testing/app'), ], ], In phpunit.xml I added: <php&

hakhsin's avatar
hakhsin's avatar martinbean6yrs agoLaravel
2
1
Last reply by martinbean 6yrs ago
Barracuda's avatar

Error on first test after upgrade to Laravel 5.7

I am working on updating my website up to Laravel 5.7 (and will keep on to 5.8 after this...), but after all is done I keep having an error on the first test that is run when the command phpunit is used, no matter which test is run first. 1) Tests\Unit\Models\VemTest::testSeenIndicators ErrorException: include(/home/vagrant/code/vendor/composer/../symfony/contracts/Service/Rese

Barracuda's avatar
Barracuda's avatar tykus6yrs agoLaravel
3
1
Last reply by tykus 6yrs ago
trevorpan's avatar

Suggestions on test: a_logged_in_user_can_view_an_individual_job()

Wondering if this is getting all the important assertions? Basically, the concept is there are jobs on a "blog" type page or 3 paginated results. If a user clicks details then they are required to either login (that test passes) or they are allowed to see the results. The deadline attribute requires some footwork (taking integer, as weeks, from html select), but other

trevorpan's avatar
trevorpan's avatar Talinon6yrs agoTesting
9
1
Last reply by Talinon 6yrs ago
uccdev's avatar

Best practice for Laravel test case helper functions?

I'm creating test cases for my laravel project, but I find that I'm repeating a lot of code. I'd like to create helper functions that make it easier to maintain, but I'm not sure what the best practice is for going about that. At the moment my test case looks like this: use Tests\TestCase; use ... ... class MyTest extends TestCase { public fun

uccdev's avatar
uccdev's avatar JohnBraun5yrs agoLaravel
5
1
Last reply by JohnBraun 5yrs ago
Tray2's avatar

Data found with manual browser test but not with phpunit

I'm building a Media Register where among other thing you can store your books and I ran into an intresting issue. From the author show view I have a link to the create route. On said route I add the sluggified complete authors name so the url looks like this. /books/create?author=jordan_robert So I wrote a test for this looking like so /** @test */ public function it_

Tray2's avatar
Tray2's avatar jlrdw6yrs agoGeneral
1
1
Last reply by jlrdw 6yrs ago
shihabudheen's avatar

Laravel unit test for nested item in response.

How can I check value of API response in laravel unit test. I want to check current_page equal to one from following response. { "data": [ [] ], "meta": { "current_page": 1, "from": 1, "last_page": 1, "path": "http://abc.local/api/v1/languages", "per_page": 15, "to": 4, "total":

shihabudheen's avatar
shihabudheen's avatar mstrauss6yrs agoTesting
1
1
Last reply by mstrauss 6yrs ago
wilfredlepelaar's avatar

How to test Laravel Nova Api route policies | TDD

How can I test API route policies for Nova resources? When I run the following test I receive a 403 response. (without any policies set) $response = $this->json('POST', 'nova-api/users', [ 'name' => 'Fancy Name', 'password' => 'secretpassword', 'email' => '[email protected]' ]); $response ->assertStatus(200) ->a

wilfredlepelaar's avatar
wilfredlepelaar's avatar thomas_inc...6yrs agoNova
1
1
Last reply by thomas_inckx 6yrs ago
makapaka's avatar

Question regarding codeception test data with laravel

So i landed in a project that has a laravel 5 API with codeception used for testing. The api.suite config file loads data that it uses to tests via Db: dump: tests/_data/dump.sql As you can see, the dump file is raw sql to create, insert data instead of using factories to use eloquent to populate the test data, making it much easier to work with. I would like to add this int

makapaka's avatar
makapaka's avatar makapaka6yrs agoTesting
3
1
cyberduck's avatar

Laravel Brower Test (Dusk) error on MacOS (Docker): Failed to connect on localhost port 9515: connection refused

I just installed Laravel's Dusk to add browser tests. However, when I run a test, I get a Failed to connect on localhost port 9515: connection refused error. I checked online and it seems like a lot of people are having the same issue. I came across few solutions e.g. this but it seems like they are all for Windows and Homestead whilst I am running my project on MacOS and Docke

cyberduck's avatar
cyberduck's avatar aurawindsu...6yrs agoLaravel
3
1
Last reply by aurawindsurfing 6yrs ago

Want us to email you occasionally with Laracasts news?

Nine out of ten doctors recommend Laracasts over competing brands. Come inside, see for yourself, and massively level up your development skills in the process.

Learn
BrowseSeriesCreatorSeriesLaravel PathLarabitsPlayground
Discuss
ForumPodcastSupport
Extras
Gift CertificatesApparelFAQiOS AppTerms
Social
X(Twitter)TikTokYoutube

© Laracasts 2026. All rights reserved. Yes, all of them. That means you, Todd.

Proudly hosted with Laravel Forge and DigitalOcean.

Want us to email you occasionally with Laracasts news?

Nine out of ten doctors recommend Laracasts over competing brands. Come inside, see for yourself, and massively level up your development skills in the process.

Learn
BrowseSeriesCreatorSeriesLaravel PathLarabitsPlayground
Discuss
ForumPodcastSupport
Extras
Gift CertificatesApparelFAQiOS AppTerms
Social
X(Twitter)TikTokYoutube

© Laracasts 2026. All rights reserved. Yes, all of them. That means you, Todd.

Proudly hosted with Laravel Forge and DigitalOcean.