profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/erikn69/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.

erikn69/bonsai 0

:maple_leaf: Asset management package for the Laravel 5 framework. Quite experimental.

erikn69/compoships 0

Multi-columns relationships for Laravel's Eloquent ORM

erikn69/eager-load-pivot-relations 0

Eager load pivot relations for Laravel Eloquent's BelongsToMany relation.

erikn69/flare-client-php 0

Send PHP errors to Flare

erikn69/flysystem 0

Abstraction for local and remote filesystems

erikn69/flysystem-google-drive-ext 0

Flysystem adapter for Google Drive with seamless virtual<=>display path translation

erikn69/framework 0

The Laravel Framework.

erikn69/ignition 0

A beautiful error page for Laravel apps

erikn69/laravel-backup 0

A package to backup your Laravel app

erikn69/laravel-chrome-logger 0

Log PHP output to the Chrome console

pull request commentspatie/laravel-permission

Adds setRoleClass method to PermissionRegistrar

@drbyte also maybe better

    public function setPermissionClass($permissionClass)
    {
        $this->permissionClass = $permissionClass;
        app('config')->set('permission.models.role',  $permissionClass);
        app()->bind(Permission::class, $permissionClass); 
        return $this;
    }
    public function setRoleClass($roleClass)
    {
        $this->roleClass = $roleClass;
        app('config')->set('permission.models.role',  $roleClass);
        app()->bind(Role::class, $roleClass);  
        return $this;
    }
timschwartz

comment created time in 3 hours

pull request commentspatie/laravel-permission

Adds setRoleClass method to PermissionRegistrar

I wanted to say something like this:

File: tests/RuntimeRole.php

<?php

namespace Spatie\Permission\Test;

class RuntimeRole extends \Spatie\Permission\Models\Role
{
}

File: tests/RoleTest.php

    /** @test */
    public function it_can_change_role_class_on_runtime()
    {
        app('config')->set('permission.models.role', RuntimeRole::class);
        app()->bind(Role::class, config('permission.models.role'));         
        app(PermissionRegistrar::class)->setRoleClass(config('permission.models.role'));
        
        app(Role::class)->create(['name' => 'test-role']);
        
        $role = app(Role::class)->findByName('test-role');

        $this->assertInstanceOf(RuntimeRole::class, $role);
    }
timschwartz

comment created time in 3 hours

pull request commentspatie/laravel-permission

Adds setRoleClass method to PermissionRegistrar

I don't mean duplicating the existing tests/RoleTest.php and modifying its setUp(), and those tests also have errors, did you run ./vendor/bin/phpunit?

ERRORS!
Tests: 377, Assertions: 794, Errors: 1, Failures: 1.
timschwartz

comment created time in 3 hours

pull request commentselect2/select2

fixed auto focus for search box for jquery 3.6.0

https://github.com/select2/select2/issues/6025#issuecomment-883899566

evanslyke31

comment created time in 20 hours

push eventerikn69/laravel-permission

Erik Niebla

commit sha f3096eaa74be1fea4610bc086b059070ca3fc5ff

Fix hints, support int on `scopePermission()`

view details

push time in 2 days

issue commentspatie/laravel-permission

Configure model names from package?

Also maybe you have to extend and overwrite https://github.com/spatie/laravel-permission/blob/2512d5a22aaae0bab8d62a02e502a603776da9da/src/PermissionServiceProvider.php#L78-L79

timschwartz

comment created time in 2 days

push eventerikn69/flysystem-google-drive-ext

Erik Niebla

commit sha 68f2f0b8341dac4c3a2c1e8dff1d508ab3f7974e

Add resourceKey fix to `getDownloadUrl `

view details

push time in 3 days

pull request commentspatie/laravel-permission

Adds setRoleClass method to PermissionRegistrar

You have to keep in mind that this package uses cache, and if you are going to change the models in the runtime, maybe you could have unexpected failures(is what I understood in #1864)

timschwartz

comment created time in 4 days

PR opened spatie/laravel-permission

[V4] Fix hints, support int on `scopePermission()`

Closes #1856

+33 -24

0 comment

3 changed files

pr created time in 7 days

create barncherikn69/laravel-permission

branch : fix_hints

created branch time in 7 days

issue commentmasbug/flysystem-google-drive-ext

[Action Required] Drive API requires updates to your code before Sep 13, 2021

@masbug look at this commit d75f8b9, i can't test it, source resource-keys

erikn69

comment created time in 7 days

create barncherikn69/flysystem-google-drive-ext

branch : resource_key

created branch time in 7 days

push eventerikn69/flysystem-google-drive-ext

Erik Niebla

commit sha a0c4596fc69a5bca82bb221c67342e96b41ea64e

Instalation info for versions

view details

push time in 7 days

push eventerikn69/flysystem-google-drive-ext

Erik Niebla

commit sha b4e17d9c4d9169b1a53dd17ce1aea74757973361

Instalation info for versions

view details

push time in 7 days

create barncherikn69/flysystem-google-drive-ext

branch : info_instalation

created branch time in 7 days

push eventerikn69/laravel-backup

Erik Niebla

commit sha 4a85cb536fd292701043eab9049e4a2ad839a54e

Merge remote-tracking branch 'origin_repo/v6' into origin_repo/main

view details

push time in 8 days

create barncherikn69/laravel-backup

branch : update_v7

created branch time in 8 days

issue commentspatie/laravel-medialibrary

SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'media' already exists

You have to implement down method on your aplication, not on the package

bhavingajjar

comment created time in 8 days

issue commentspatie/laravel-medialibrary

MediaRepository::getCollection(): Argument #1 ($model) must be of type Spatie\MediaLibrary\HasMedia

Not a bug, really easy, just use hasMedia

class Model extends \Eloquent implements \Spatie\MediaLibrary\HasMedia
{
     use \Spatie\MediaLibrary\InteractsWithMedia;
stonkeep

comment created time in 8 days

issue commentspatie/laravel-medialibrary

Attempt to read property "currentTeam" on null

If you use queue auth()->user() does not exist because job has no login, you have to send $team_name to queue

Hnooz

comment created time in 8 days

PR opened spatie/laravel-medialibrary

[V9] Remove regex on FileNamer

Closes #2586

+4 -4

0 comment

2 changed files

pr created time in 9 days

create barncherikn69/laravel-medialibrary

branch : fix_filenamer

created branch time in 9 days

pull request commentspatie/laravel-medialibrary

Add down method in migration stub

It was intentional, spatie packages normally don't have a down method

luilliarcec

comment created time in 9 days

issue commentspatie/laravel-permission

Incorrect type hint for some variadic arguments

sorry, i read it wrong, i'm learning english

wimski

comment created time in 9 days

push eventerikn69/laravel-permission

Erik Niebla

commit sha 80c1c321a1b917b3263b7aeb78fc72878a957aa7

Doc for `Super Admin` on teams

view details

push time in 10 days

push eventerikn69/laravel-permission

Erik Niebla

commit sha a4231323ebe87b571bbb5c811cffe3d98a6eab7f

Add uuid compatibility on team_id

view details

push time in 10 days

push eventerikn69/laravel-permission

Erik Niebla

commit sha 1fad2dc2ab8e986c4cc5bebd4ab1d76fdbdb7641

Add uuid compatibility on team_id

view details

push time in 10 days

push eventerikn69/laravel-permission

Erik Niebla

commit sha b436c0e516d1eb65aacc98aeb2e27f20b152489f

Use cache on models

view details

push time in 10 days