Category : package

I have cloned a laravel project from github and tried to install the composer it hang while downloading this two packages and at the end it failed and show the following: [email protected]:/var/www/html/POS_Ibra-test$ composer install Installing dependencies from lock file (including require-dev) Verifying lock file contents can be installed on current platform. Warning: The lock file ..

Read more

i’m newbie, i have created a laravel package but i can’t require to install it. When I try to install this package using composer require spider/spider-reporter:@dev I get below error [InvalidArgumentException] Could not find a matching version of package spider/spider-reporter. Check the package spelling, your version constraint and that the package is available in a ..

Read more

I want import Excel but only on sheet index[0], but when I use toCollection or toArray method the rows wrapped on sheet index array: I want remove the wrapped parent array, how to do this? Here is my code: Import.php <?php namespace AppImports; use MaatwebsiteExcelConcernsImportable; use MaatwebsiteExcelConcernsSkipsEmptyRows; use MaatwebsiteExcelConcernsWithCalculatedFormulas; use MaatwebsiteExcelConcernsWithMultipleSheets; class Import implements SkipsEmptyRows, ..

Read more

I needed to dynamically set my field labels on a crud (useful for localization and cleaning the controller), so I used : $this->crud->setLabeller(); this takes a callback to define the behavior of creating labels. the problem is : this only works with columns, for example in: setListOperation(){$this->crud->column(‘example’);} controller method (doesn’t work with fields). my question ..

Read more

I am trying to install Laravel Sanctum following the instructions on Laravel’s website: https://laravel.com/docs/8.x/sanctum I run this command composer require laravel/sanctum and Laravel Sanctum is successfully installed: Using version ^2.11 for laravel/sanctum ./composer.json has been updated Loading composer repositories with package information However, it seems like installing Sanctum is also removing default Laravel Packages: Package ..

Read more

I have created a laravel package https://github.com/wcaaan/firebase-token-authentication My repository is synced with packagist https://packagist.org/packages/wcaaan/firebase-token-authentication As soon as i push and create a new release it automatically shows up in packagist. The problem is what ever i do i cannot install the repository through composer. I have created two released on gitHub. I have tried all ..

Read more

I am new on developing application, but now I’m handling a laravel project (website app) that have been deployed on cpanel. Now, I need to use a specific function, but for using it, I need to install the package (the package is maatwebsite/excel). The steps are written here: https://5balloons.info/laravel-export-and-import-excel-using-maatwebsite-package/ (and many other website), but on ..

Read more

I’m using Laravel as framework to build an application framework which can be used to build their own application by fellow developers. Now I’m running into a little PSR-4 namespacing problem in the composer packages I’m developing. Example of how my application framework is designed =================================================================== app/ MyApplicationName/ Mapper/ BaseMapper.php (namespace: AppMyApplicationNameMapper) bootstrap/ config/ … ..

Read more

I’m trying to use font awesome in dompdf/laravel but no matter what I try the icons don’t show up, I’ve seen a bunch threads with similar or the same issue and their answers don’t work for me. I have included all the styles related fonts in internal styles @font-face { font-family: "FontAwesomeRegular"; font-weight: normal; font-style ..

Read more

I’m trying to add blade directives for my Laravel package. Everything is fine but on testing stage, I’m getting this error: 1) MahbodHastamUserWalletTestsFeatureBladeTest::show_user_wallet_balance InvalidArgumentException: View [userWalletBalance] not found. Should I put $this->loadViewsFrom(…) in the service provider? View path: /tests/resources/views/userWalletBalance.blade.php Test path: /tests/Feature/BladeTest.php I also tried to move the resources directory into Feature directory (beside the ..

Read more