I used pingpong for implementing modules in L 5.1 ..
I used laravel-modules of nwidart provider in 5.3 ..
after I used laravel-modules, i get error like Class Input not found, and for other classes too..
In ping pong there was a line like: use Pingpong\Modules\Routing\Controller;
However i cannot see that in laravel-modules.. Please help me..
<?php namespace Modules\Register\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Routing\Controller;
use Illuminate\Support\Facades\Validator;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Validation\Factory;
use Illuminate\Support\Facades\Redirect;
use Input;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Session;
use DB;
use App\User;
use App\UserRoles;
use App\CustomLibrary\General;
public function store(Request $request)
{
dd(Input::all());
$this->validate($request,[
'email'=>'required',
'password'=>'required|min:6',
'cpassword'=>'required|same:password',
'role'=>'required'
]);
Input class Validate class.. nothing is working..
@tomi should I roll back to 5.1? It's kinda big project, and without modules plugin it would be a hectic task..
It would be a great favor for me, if you tried 5.3 and this plugin:
yes I updated, and it installed and all those commands like
php artisan module:make Test
was working.. its just the error where No any Classes can be imported, may be due to the issue I posted earlier..
like in ping pong in L5.1 there was an extra line in newly created module like:
@tomi yes i exactly did that.. and the packaged installed successfully .. modules are also being created, i just can't use any libraries/classes inside the module's controller..