profile
viewpoint

pull request commentdigitalrisks/laravel-eventstore

fix: add stderr logging

Will delay merge as I want to put in tests for both standard and error logging

eithed

comment created time in 3 days

create barnchdigitalrisks/laravel-eventstore

branch : SUP-48-stderr-logging

created branch time in 3 days

PR opened mailosaur/mailosaur-php

Fix thrown exception

This PR will fix the message returned by waitFor to Email message not found. if indeed given email was not found. Currently Unspecified error. is returned due to usage of MailosaurException

+20 -5

0 comment

2 changed files

pr created time in 9 days

push eventeithed/mailosaur-php

Pawel Trauth

commit sha 67269d53c7071f2574c2b3ca508e4b2c934285e5

fix thrown exceptions

view details

push time in 9 days

PR closed Silvanite/nova-field-cloudinary

Add support for folders

Per https://github.com/Silvanite/nova-field-cloudinary/issues/4

This will allow users to define what folder on Cloudinary given field should upload to. While default folder where the file is stored is set to be '/' in Laravel\Nova\Fields\File ($storagePath), one can override this behaviour by extending CloudinaryImage and defining $storagePath within the constructor.

+11 -3

6 comments

1 changed file

eithed

pr closed time in 12 days

issue commentlaravel/nova-issues

Invalid filter names being displayed

Thank you! That did the trick.

eithed

comment created time in 21 days

issue commentcalebporzio/sushi

QueryException with message 'could not find driver (SQL: select * from ...)

The error tells you that pdo_sqlite extension is not enabled. In my case (on Heroku), the solution was to: composer require ext-pdo_sqlite

victoryoalli

comment created time in 2 months

issue openedkodekeep/sushi-countries

Can't use models within controllers

Hello!

When trying to use the package in controller a file not found exception is raised:

file_get_contents(vendor/mledoze/countries/dist/countries.json): failed to open stream: No such file or directory

I believe this is due to Laravel loading all classes from within ./public folder (within public/index.php) where Composer autoload is triggered

require __DIR__.'/../vendor/autoload.php';

We can confirm this by firing getcwd() within the package like such:

dd(getcwd());
$database = \json_decode(\file_get_contents('vendor/mledoze/countries/dist/countries.json'), true);

which outputs ./public

The workaround is to do:

\file_get_contents(base_path().'/vendor/mledoze/countries/dist/countries.json')

Cheers!

created time in 2 months

fork eithed/sushi-countries

Countries for https://github.com/calebporzio/sushi

fork in 2 months

issue commentMaatwebsite/Laravel-Nova-Excel

[BUG/QUESTION] Excel empty with lens and query raw

It's look like looking for my model id with my dates but i can't give a id, is a group by query with count, is it possible that export with a query raw directly avoid the model?

Afaik this is not possible - Nova itself associates lenses with specific model

JoseLuisRNP

comment created time in 3 months

issue commentMaatwebsite/Laravel-Nova-Excel

[BUG/QUESTION] Excel empty with lens and query raw

The issue is because the package itself serializes QueryBuilder; as such given field will be empty if you have within your lenses a dynamic field. The solution is to move given field to an attribute getter on a model.

JoseLuisRNP

comment created time in 3 months

issue openedlaravel/nova-issues

Invalid filter names being displayed

  • Laravel Version: 7.9.2
  • Nova Version: 3.5.0
  • PHP Version: 7.4.0

Description:

I define my filter as such:

<?php

namespace App\Nova\Filters;

use Illuminate\Http\Request;
use Illuminate\Support\Carbon;
use Laravel\Nova\Filters\DateFilter;

class DateFrom extends DateFilter
{
    public function __construct($field, $name = null)
    {
        $this->field = $field;

        if ($name) {
            $this->name = $name;
        }
    }

    public function apply(Request $request, $query, $value)
    {
        return $query->where($this->field, '>=', Carbon::parse($value)->setTime(0, 0, 0));
    }
}

And use it as such:

new Filters\DateFrom('created_at', 'Created at from'),
new Filters\DateTo('created_at', 'Created at to'),
new Filters\DateFrom('converted_at', 'Converted at from'),
new Filters\DateTo('converted_at', 'Converted at to'),

I'd expect it to display label for individual fields, yet it's always displaying first label for given class, even though filters response contains valid labels:

Screenshot 2020-05-12 at 17 42 33

Trying to use second instance of DateFrom / DateTo doesn't work as well - instead Uncaught (in promise) undefined error will be thrown.

The workaround is to define a class for each individual field as such:

class EffectiveDateFrom extends DateFrom
{
    public function __construct($field = 'effective_date', $name = null)
    {
        parent::__construct($field, $name);
    }
}

created time in 3 months

more