Questions tagged [laravel-package]

44 questions
0
votes
0 answers

Right way to publish custom classes from Laravel Package

Lets say I'm building a laravel package, which has hierarchy like this: PackageContainerClass > *PackageClass* > SomePackageClassMethod() I want to make PackageClass swappable by a class from main App. I know I could create a publishable…
0
votes
0 answers

QR code is generated by using 'Simple QrCode' package not showing correctly?

I have used 'Simple QrCode' package to generate 'QR Code'. Followed the instruction https://www.positronx.io/how-to-generate-various-qr-codes-in-laravel-application/ I want to generate Logo Inside QR CODE, Code {!!…
0
votes
0 answers

Bought Laravel Package, Package is running Laravel 6.x

I'm having trouble with installation of this here package i bought RedPrint Laravel App Builder CRUD Generator Plus When I download the zip file and then in the terminal I can't do either Composer install or npm install && npm run dev or php artisan…
0
votes
0 answers

How to Install & Configure the Finnhub.io Package in Laravel 8

setApiKey('token', ''); $client = new Finnhub\Api\DefaultApi( new GuzzleHttp\Client(), $config ); …
Epigie
  • 47
  • 7
0
votes
2 answers

Accessing css with asset() in laravel package

Eghad, the laravel documentation is lacking. So if you want to have css in a package for the package views specifically, and you figure out how to publish those assets, how do you specify the path when calling them with the asset() helper? e.g.: I…
Scott
  • 7,983
  • 2
  • 26
  • 41
0
votes
0 answers

Call to undefined method Vender\Package\Auth::extend() in package

I'm trying to create an authentication package (module) using jwt-auth that can be reused across all of my applications. But I receive errors. Framework Laravel Framework version 8.46.0 jwt-auth version ^1.0.0-beta.3@dev PHP version…
Hossein Fallah
  • 1,859
  • 2
  • 18
  • 44
0
votes
2 answers

Method Illuminate\Http\UploadedFile::validate does not exist

Hello All I am trying to get validate file in laravel with custom package but i give the error of the "Method Illuminate\Http\UploadedFile::validate does not exist." so please know what is a problem. MyController…
0
votes
1 answer

Laravel migration package publishing order

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) { …
Federico Arona
  • 125
  • 1
  • 13
0
votes
0 answers

Installing any Laravel package on an AWS EC2 server shows warning and error messages even though the composer version installed Globally is latest

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…
0
votes
1 answer

Custom Package Repository Interface is not instantiable in Laravel 6

Target [MyPackage\Crm\App\Repositories\CommentRepositoryInterface] is not instantiable while building [MyPackage\Crm\App\Http\CommentController]. The Controller in question MyPackage\Crm\App\Http\CommentControllers.php works fine if I inject the…
ronline
  • 2,211
  • 1
  • 20
  • 27
-1
votes
1 answer

How to add a custom laravel package to git?

I developed a custom laravel package that is located under packages/vendor/name. As I created all the files there, it is now part of my main app's git repo. What is now to correct way to maintain that package in it's own repo? Do I need to add the…
JanBoehmer
  • 395
  • 3
  • 14
-1
votes
1 answer

Laravel Packge Nested Classes and Methods structure in Object-oriented PHP

I'm making a Laravel package, which is a basic API Wrapper to practice. I want my code completely re-usable and neat, well that's the reason we learn OOP I think :P Let me first attach my code, and I'll explain what I'm trying to achieve via…
Subham Manna
  • 103
  • 1
  • 12
-2
votes
1 answer

How can I write to a Laravel file?

I'm writing my first Laravel package, and I need to add some lines of code (like routes to web.php, or add a function to a controller) on an event triggered by the user. How can I open the file and add some code to it? (I know that the package's…
anas bouabid
  • 1
  • 1
  • 6
1 2
3