GithubHelp home page GithubHelp logo

nova-trust's People

Contributors

saiik avatar zareismail avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nova-trust's Issues

Trait method roles has not been applied, because there are collisions with other trait methods on App\User

If my traits for User.php are:

use \Staudenmeir\EloquentHasManyDeep\HasRelationships, LaratrustUserTrait, \NovaTrust\Concerns\InteractsWithNovaTrust, Notifiable, SoftDeletes, \Spatie\Tags\HasTags;

then I get:

Trait method roles has not been applied, because there are collisions with other trait methods on App\User

If I remove 'LaratrustUserTrait ' like this:

use \Staudenmeir\EloquentHasManyDeep\HasRelationships, \NovaTrust\Concerns\InteractsWithNovaTrust, Notifiable, SoftDeletes, \Spatie\Tags\HasTags;

Then I get:

502 Bad Gateway from Nova but works on front-end

Issue was experienced when I updated the package (with PR) to work with v.7 of Laravel: #6

Missing helper functions

Hey,
I've just installed your package and some functions don't work for me.

For example the permission tab doesn't work, because some helper functions are missing:

  • title_case / snake_case

Currently using Laravel Nova 2.0 and Laravel 6.X.

My fix would be:

File: Helpers/PermissionContainer.php

	/**
	 * Make displayable name for ability.
	 * 
	 * @param  string $ability 
	 * @return string          
	 */
	static public function displayName(string $ability)
	{
		$ability = str_replace('-', ' ', $ability);

		$name = collect(explode('.', $ability))->reverse()->filter()->implode(' ');

		return Str::title(Str::snake($name, ' '));
	}

Migrations being added despite not running migration publish

I've already got my migrations in place for Team and Roles and so forth with additional customisations.

Now I'm adding this pacakge after a setup site I'm having the migration files from the vendor directory added automatically despite not being in my migrations/ folder..

Consequently I get a conflict:

`
Migrating: 2020_04_09_135211_create_team_table

Illuminate\Database\QueryException

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

Any thoughts on how I stop the package from insisting on the migrations? I feel this is the final block to me using this package!

Cheers!

Integrity constraints violation after migration

Hi, the full error is:

SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'id' in where clause is ambiguous (SQL: select exists(select * from rolesinner joinrole_useronroles.id=role_user.role_idwhererole_user.user_id= 1 andid= 1 androles.deleted_atis null) asexists)

can you help me with this.

thanks

undefined **title_case** and **snake_case** Error

In NovaTrust\Helpers\PermissionContainer method at displayName

undefined title_case and snake_case

static public function displayName(string $ability)
{
$ability = str_replace('-', ' ', $ability);

	$name = collect(explode('.', $ability))->reverse()->filter()->implode(' ');

	return title_case(snake_case($name, ' '));
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.