public function test() { $a = new MyClass2("Ankit"); return $a->getName(); }
| Application Routes |-------------------------------------------------------------------------- | | Here is where you can register all of the routes for an application. | It's a breeze. Simply tell Laravel the URIs it should respond to | and give it the Closure to execute when that URI is requested. | */ Route::get('/', function () { return "Welcome to ROBUST"; }); Route::get('/myclass', array('uses' => 'MyclassController@test')); Route::get('/myclass2', array('uses' => 'Myclass2Controller@test')); Route::get('/createMyClass2', function () { $b = new MyClass2("TEST"); return $b->getName(); }); /* Look at the class created by use of namespaces */ Route::get('/student', function () { $a = new \libraryClasses\Student("ANKIT", 68007); return $a->test(); }); /* Direct get the class by use of namespaces */ Route::get('/packagetest', function () { echo \Ankit\Userpackage\Userpackage::greeting(); }); Route::get('/callclass', function () { $a = new MyClass(); return $a->getStatus(); }); /* Model manipulation test */