我最近2年开发codeigniter应用程序,自从我从codeigniter本身开始我的mvc模式样式以来,现在我不是一个沉重的命令行用户,所以起初我有一些Codeigniter的学习曲线,但我穿过它,并开始使用代码点火器开发应用程序,因为我们不需要配置很多,一切都在一个zip文件中,但现在不幸的是,codeigniter已经死了,我只是一个人在我的团队中,我不得不依靠其他由其他人信任的第三方工具,所以我决定切换到laravel,现在在启动它时,由于作曲者和其他所有东西而从代码转换器中迁移方式非常艰难,但我也以某种方式越过了这些工具,但我现在与路由混淆了和其他的东西,我已经尝试了很多教程,但我仍然无法看到如何从应用程序中迁移,我在哪里管理学生,他们可以在哪里更改电子邮件,c hange电话号码更新的东西,在codeigniter这很容易,但我不怎么处理laravel路由这个问题,现在这个问题听起来愚蠢的社区谁已经在laravel工作,但如果你从我的角度来看它会影响我的面包和黄油。这就是我笨Laravel中的控制器方法
class Student extends CI_Controller{
// usual piece of code of constructor
function update_email()
{
// piece of code to update email
}
}
使用的方法,但是现在laravel路由系统和所有我不知道如何处理这个资源控制器看起来像这样
<?php
class StudentController extends \BaseController {
/**
* Display a listing of the resource.
*
* @return Response
*/
public function index()
{
}
/**
* Show the form for creating a new resource.
*
* @return Response
*/
public function create()
{
//
}
/**
* Store a newly created resource in storage.
*
* @return Response
*/
public function store()
{
//
}
/**
* Display the specified resource.
*
* @param int $id
* @return Response
*/
public function show($id)
{
//
}
/**
* Show the form for editing the specified resource.
*
* @param int $id
* @return Response
*/
public function edit($id)
{
//
}
/**
* Update the specified resource in storage.
*
* @param int $id
* @return Response
*/
public function update($id)
{
//
}
/**
* Remove the specified resource from storage.
*
* @param int $id
* @return Response
*/
public function destroy($id)
{
//
}
}
现在每一个部分是好吧,但我怎么可以接近我只更新电子邮件地址或只有电话号码和东西的东西