DEV Community

Discussion on: How to implement a basic, role-based, ACL in Laravel

Collapse
 
eelcoverbrugge profile image
Eelco Verbrugge

Thanks Benjamin! Helps a lot. I do get this error when migrating the role_user table. Any thoughts?

Laravel 5.6: BadMethodCallException Illuminate\Database\Schema\Blueprint::foreignId does not exist.

Collapse
 
bdelespierre profile image
Benjamin Delespierre • Edited

Hello Eelco,

foreignId is a method introduced in Laravel 7. For 5.6 you need to use unsignedBigInteger. Here's the complete list laravel.com/docs/5.6/migrations#cr...