try using get() instead of all()
Mar 11, 2021
7
Level 12
Hard time solving the SUSHI Error - could not find driver (SQL: select *
could not find driver (SQL: select * from "app_countrys")
when
use App\AppCountrys;
return view( 'account.editProfile' )
->with([
'countrys' => AppCountrys::all(),
]);
laravel is trying to get the app_country table from the SQL but I am using SUSHI Pack the one Porcio made
this is the class
namespace App;
use Illuminate\Database\Eloquent\Model;
class AppCountrys extends Model
{
use \Sushi\Sushi;
protected $rows = [
[ 'abbr' => 'AF' , 'name' => 'Afghanistan' ],
]
}
all the laravel is working all exept this call to this specific class that is calling a special DB
Level 122
@yokozawa0701 they are not waiting two years for your reply.
Anyone reading this, just try reading the package docs. Yes of course it uses sqlite (only). So what?
Please or to participate in this conversation.