#### Category : laravel-package

Hello All I am trying to get validate file in laravel with custom package but i give the error of the "Method IlluminateHttpUploadedFile::validate does not exist." so please know what is a problem. MyController code: $files=$request->file(‘image’); if($files){$oGreetr = new Greetr(); return $oGreetr->file_size($files); } Package Code: public function file_size($file){ //return$file->getClientOriginalExtension(); return $file->validate([ ‘image’ => .. Read more I’m creating a package that uses internally this hashid package. How can I register a third party facade inside a custom package? I tried three options and none of them worked. Version – Composer "aliases": { "Hashids": "VinklaHashidsFacadesHashids" } Version – inside my ServiceProvider with alias class MyPackageServiceProvider extends ServiceProvider { public function register() { .. Read more I want to generate a QR Code in laravel and in the middle profile of the user that changes according to the user and that one available in any shape but I want to add in round shape in QR Code. please provide a solution. Thank you In Advance.I am using this one package https://github.com/endroid/qr-code .. Read more recently i update my laravel version from 5.7 to 8.4 in my laravel Model i used SpatialTrait of grimzy/laravel-mysql-spatial package; and after upgrading when i want to use the model, for example get all my models (Model::all()) its get an error that said : GeoIOWKBParserExceptionParserException Parsing failed: Not enough bytes left to fulfill 1 double. .. Read more I am trying to create a laravel package and it requires a level of abstraction where user of the package is ment to input an API key. So i made an API KEY field in the .env, with a config file of course.. my question is, is it possible to append your custom env fields .. Read more I’m building a Laravel Package. I need to publish my custom migrations. One migration need another one to be run because it has a foreign key constraint. In my service provider I’m doing this: public function boot(Filesystem$filesystem) { $this->loadMigrationsFrom(dirname(__DIR__).’/migrations’);$this->publishMigrations($filesystem); } private function publishMigrations(Filesystem$filesystem) { if (! class_exists(‘CreateReferencedTable’)) { \$this->publishes([ __DIR__ . ‘/../database/migrations/create_referenced_table.php.stub’ ..

enter image description here I tried installing Laravel packages on my EC2 server on AWS via puTTY but everytime i run installation commands for a Laravel package, It shows a warning message (as shown in the image) and after that crashes with the same message: In RemoteFilesystem.php line 560: The "http://repo.packagist.org/p/provider-2013%24373e592feb042f51b8ed82f090 6531e330bdd926e48324f0393ad8c54afb6b5c.json" file could not ..

I am trying to test the Laravel package. I need to use facades in the package.I read is better to use the orchestra/testbench package. But when I run the test, I get an error: PHP Fatal error: Uncaught Error: Class ‘OrchestraTestbenchTestCase’ not found Launched in PhpStorm and from CLI without any results. The package is ..

I am creating my own laravel package. In that package I have to register a custom command which does nothing but print a text in the console. By following this guide I have created my command file inside srcConsole folder and registered this command in ‘boot’ method of my ServiceProivider. I have installed my package ..

I want to make a website just like redbubble so that users can upload or choose a design that they like, and that chosen design will be added automatically to some pre-defined products such as mugs, masks, t-shirts &, etc. So in order to do this, I need something like imagelayereffect that adds an extra ..