profile
viewpoint
Barry vd. Heuvel barryvdh @fruitcake Noord-Brabant, the Netherlands http://linkedin.com/in/barryvdheuvel/

asm89/stack-cors 1045

Cross-origin resource sharing library and stack middleware.

barryvdh/composer-cleanup-plugin 112

Composer plugin for cleaning up unused files from packages.

barryvdh/awesome-laravel 25

A curated list of bookmarks, packages, tutorials, videos and other cool resources from the Laravel ecosystem

barryvdh/awesome-php 18

A curated list of amazingly awesome PHP libraries, resources and shiny things.

barryvdh/barryvdh.github.io 16

Jekyll blog for barryvdh.nl

barryvdh/assetic-filters 3

Additional CSSminFilter and UriPrependFilter, using the mrclay/minify libraries

barryvdh/awesome-magento2 3

Curated list of awesome Magento 2 Extensions, Resources and other Highlights

barryvdh/BluetoothClassicSerial 2

Cordova (PhoneGap) Plugin for Serial Communication over Bluetooth

barryvdh/artisanBashCompletion 1

Bash completion for Laravel 4 artisan

barryvdh/botman 1

A framework agnostic PHP library to build chat bots

PR closed barryvdh/laravel-ide-helper

Reviewers
composer.json: remove --prefer-lowest

Summary

IMHO it's impractical to expect this package to have to work with the "first release of Laravel for any major release" even when there are already sever more releases: no one is/should stick to that version.

See also https://github.com/barryvdh/laravel-ide-helper/pull/1074#pullrequestreview-504182121

Type of change

  • [x] Misc. change (internal, infrastructure, maintenance, etc.)
+2 -3

3 comments

1 changed file

mfn

pr closed time in 27 minutes

pull request commentbarryvdh/laravel-ide-helper

composer.json: remove --prefer-lowest

OP from https://github.com/barryvdh/laravel-ide-helper/pull/1074#issuecomment-706474118 found a workaround, so maybe indeed we don't need this (personally I still think prefer lowest doesn't make sense, but it's not urgent) => closing

mfn

comment created time in 27 minutes

pull request commentbarryvdh/laravel-ide-helper

Fix Relative class names are not converted to fully-qualified class names (FQCNs)

I made a note to take a look sometime later, thanks!

I did make a note but coming back to this, I don't feel like having the energy going through this without any test coverage.

I'm happy to assist anyone else taking a stab a this tough, just create a new PR with this commit and hack away and ping me. It's easier to talk about this in PRs with actual code then with sharing ZIPs.

SavKS

comment created time in 29 minutes

issue closedbarryvdh/laravel-ide-helper

can not find Model‘s Builder

Versions:

  • ide-helper Version: ^2.8
  • Laravel Version: ^7.29
  • PHP Version: v7.3.8

Description:

where i use mode Builder can not find just like firstOrCreate

demo

Steps To Reproduce:

closed time in 36 minutes

burtgithub

issue commentbarryvdh/laravel-ide-helper

can not find Model‘s Builder

Your issue lacks basically every kind of information what you tried or not.

For me in works in PhpStorm, I can autocomplete for firstOrCreate: image

Please make sure you generated the _ide_helper.php file via ./artisan ide-helper:generate and it's in your project discoverable by the IDE.

I'm closing this as I don't believe there's a bug in ide-helper regarding this.

Thank you!

burtgithub

comment created time in 36 minutes

pull request commentbarryvdh/laravel-ide-helper

There is no need to generate comments for query, newquery, newmodelqu…

I'm sorry, I don't understand the purpose of this PR.

It's certainly possible to invoke <YourModel>::… with any of these methods; they're caught by \Illuminate\Database\Eloquent\Model::__callStatic and forwarded.

Can you explain in more detail what it fixes for your? Also just commenting out code and not adapting tests won't be acceptable.

I'm inclined to reject this PR in the current state without more information, I hope you can understand.

a443939412

comment created time in an hour

startedbarryvdh/laravel-debugbar

started time in 2 hours

startedbarryvdh/laravel-dompdf

started time in 2 hours

startedbarryvdh/laravel-dompdf

started time in 3 hours

startedbarryvdh/laravel-dompdf

started time in 5 hours

startedbarryvdh/laravel-dompdf

started time in 6 hours

startedbarryvdh/laravel-debugbar

started time in 6 hours

startedbarryvdh/laravel-debugbar

started time in 8 hours

issue commentbarryvdh/laravel-dompdf

Images do not render inside generated PDF

@CamiloPerezOrtiz my php version is 7.3.8, im using barryvdh/laravel-dompdf to generate pdf invoice in my laravel api I'm creating HTML invoice first and PDF::loadHtml($this->htmlTextForPdf)->save(public_path() . '/reports/output/' . $pdf_file_name); using loadHtml method to convert it to PDF

blorange2

comment created time in 8 hours

issue commentlaravel/telescope

Laravel Telescope: With Laravel as API

Solution

Host your API on a subdomain also. This bypasses the problem, while keeping your api intact.

It's not possible to host a second level subdomain on "https" protocol i.e.: https://api.subproject.project.com

https://serverfault.com/questions/104160/wildcard-ssl-certificate-for-second-level-subdomain

margaritacoco

comment created time in 8 hours

issue commentthephpleague/omnipay

Internal/credit "gateway"?

@barryvdh Any recommendations on a gateway to model after? My API will obviously be very simple, probably just a local DB call.

MGatner

comment created time in 8 hours

startedveewee/composer-run-parallel

started time in 10 hours

issue openedbarryvdh/laravel-ide-helper

Flysystem\Local error back on Lumen 8

Versions:

  • ide-helper Version: 2.8.x-dev
  • Lumen Version: 8.2.1
  • PHP Version: 7.4.4

Description:

Generate fails due to a dependency on League\Flysystem\Local

Steps To Reproduce:

php artisan ide-helper:generate

Error shown:


In FilesystemManager.php line 164:
                                                    
  Class 'League\Flysystem\Adapter\Local' not found

created time in 11 hours

pull request commentbarryvdh/laravel-ide-helper

Allow casts with a return type of static or this to reference themselves

Thanks for suggesting the tests @mfn, it made me realise a bug in my code :)

I've added hopefully thorough tests for all the different cases. I also fixed an unrelated issue in another test due to a deprecated phpunit method being used.

hailwood

comment created time in 13 hours

startedbarryvdh/laravel-ide-helper

started time in 14 hours

issue commentbarryvdh/laravel-ide-helper

can not find Model‘s Builder

<?php namespace App\Http\Models\Ai;

use Illuminate\Database\Eloquent\Model;

class AiBz extends Model { protected $connection = 'ai';

protected $table = 'tbl_horoscope';


protected $guarded = [];

}

use:

$a = new AiBz(); $a->firstOrCreate([xxx]);

the firstOrCreate is not find

burtgithub

comment created time in 14 hours

issue openedbarryvdh/laravel-ide-helper

can not find Model‘s Builder

Versions:

  • ide-helper Version: ^2.8
  • Laravel Version: ^7.29
  • PHP Version: v7.3.8

Description:

<!-- where i use mode Builder canm not find just like firstOrCreate

demo

model

<?php namespace App\Http\Models\Ai;

use Illuminate\Database\Eloquent\Model;

class AiBz extends Model { protected $connection = 'ai';

protected $table = 'tbl_horoscope';


protected $guarded = [];

}

use:

$a = new AiBz(); $a->firstOrCreate([xxx]);

the firstOrCreate is not find

-->

Steps To Reproduce:

created time in 14 hours

pull request commentbarryvdh/laravel-ide-helper

Allow casts with a return type of static or this to reference themselves

Can you please add a test showing the behavour change? Thank you!

hailwood

comment created time in 15 hours

startedbarryvdh/laravel-ide-helper

started time in 17 hours

PR opened barryvdh/laravel-ide-helper

Allow casts with a return type of static or this to reference themselves

Right now a cast cannot specify that it returns static or this. Allowing so would mean a new cast can extend the old one without having to redefine the get method (e.g. an Enum) Presently if you specify static/this in the return type then those values are literally used which makes a property look like it returns an instance of the model itself.

+8 -4

0 comment

1 changed file

pr created time in 20 hours

issue commentfruitcake/laravel-cors

Unable to locate publishable resources when following readme

Hi, @rulatir .

I had a same problem but solved by removing /vendor directory and restarting composer require fruitcake/laravel-cors from scratch.

Hope it will work out.

Still experiencing this as of 1.0.5.

guiltyvictim

comment created time in 20 hours

startedbarryvdh/laravel-ide-helper

started time in 21 hours

startedbarryvdh/laravel-ide-helper

started time in a day

issue commentthephpleague/omnipay

Internal/credit "gateway"?

... or if I embark on writing my own, any recommendations on a good starting point? E.g. a minimalist gateway

MGatner

comment created time in a day

issue closedbarryvdh/laravel-snappy

Snappy not Rendering Javascript Library Properly

Hello

i had trouble when converting page that use leader line to pdf using snappy-laravel. the line position was not render properly, i didn't get any solution yet. and when i make two table the table was printed in one page but the line was printed in another page.

this image from the page image

and this one from the pdf image

this is my script $pdf = \SnappyPDF::loadView('skordisc',compact('graph1', 'graph2', 'graph3')); $pdf->setPaper('a4'); $pdf->setOption('enable-javascript', true); $pdf->setOption('debug-javascript', true); $pdf->setOption('javascript-delay', 1500); $pdf->setOption('disable-smart-shrinking', true); $pdf->setOption('no-stop-slow-scripts', true); $pdf->setOption('exclude-from-outline', true); $pdf->setOption('margin-top', 0); $pdf->setOption('margin-right', 0); $pdf->setOption('margin-bottom', 0); $pdf->setOption('margin-left', 0); $pdf->setOption('encoding', "UTF-8"); $pdf->setOption('no-outline', true); return $pdf->download('chart.pdf');

is there any method to fixed this position so its can following the actual page?

Best Regards

closed time in a day

Shineryc
more