Category : frameworks

I’m completely new in Laravel and I’m getting troubles with routes basic usage. Despite I follow the official documentation, routes just don’t work. the line Route::get(‘foo’, function() {return ‘Hello World’;}); doesn’t work. When I browse to http://laravel/foo I get a not found error. Only Route::get(‘/’ will properly shows the Hellow World message. I use the ..

Read more

the line Route::get(‘foo’, function() {return ‘Hello World’;}); doesn’t work in Laravel 8. Only Route::get(‘/’ will. Can anyone explain me why? Also if I do something like this Route::get(‘/welcome’, ‘[email protected]’); And then I create the class WelcomeController in AppHttpControllers, that is <?php namespace AppHttpControllers; class WelcomeController extends Controller { public function index() { return ‘Hello, World!’; ..

Read more

It may sound like a very general question, but it’s hard for me to choose which way I should set out. As an example, I’m right now struggling with the choice between PHP Core and the Laravel Framework. I successfully found some opinions on this topic, but in the end, there are two repeating points ..

Read more

I have a question for you! I am working on a personal project (Student Information System) for a university and I am planning how the access for the users of the application will work. I would like to be able to connect the users table with either students (if the user is a student) or ..

Read more

I have web.php with $router->namedRoutes[‘c_k’] = $router->post(‘/c_k’, [‘uses’ => ‘[email protected]’]); in it. Also there is BController with cK method. Then, I have AController. In AController is action g_k. The problem: client makes get-request to g_k action in AController, and I want to redirect it to c_k action(it’s post, u remember?) of BController with some json ..

Read more