小编Sho*_*hin的帖子

“git rm” - “-rf”是什么意思?

git中的“-rf”是什么意思?

我用了

git rm -rf directories
Run Code Online (Sandbox Code Playgroud)

但我不知道 -rf 的实际含义

git

5
推荐指数
1
解决办法
3220
查看次数

Laravel:从刀片模板调用控制器类的方法

如何从刀片模板调用控制器的方法并接收该方法返回的数据.例如:

MeetingRoomController

class MeetingRoomController extends \BaseController
{

    public function index()
    {
        //get all the meeting room
        $meetingRoomCountry = MeetingRoom::select('country')->distinct()->orderBy('country')->get();
        return View::make('index')->with('meetingroom', $meetingRoomCountry);
    }

    public function findLocationForNavBar( $country )
    {
        $meetingRoomLocation = MeetingRoom::select('location')
                ->distinct()
                ->where('country', '$country')
                ->orderBy('country')
                ->get();
        return View::make('index')- >with('meetingroomLocation', $meetingRoomLocation);
    }

}
Run Code Online (Sandbox Code Playgroud)

查看 - index.blade.php

<div id="dropdown-lvl1" class="panel-collapse collapse">
    <div class="panel-body">
         <ul class="nav navbar-nav">
         @foreach($meetingroom as $key => $value)                                            
             <li class="panel panel-default" id="dropdown">
                 <a data-toggle="collapse" href="#dropdown-lvl2">
                     <span class="glyphicon glyphicon-off"></span> {{$country = $value->country}} <span class="caret"></span>
                  </a>
                  <div id="dropdown-lvl2" class="panel-collapse …
Run Code Online (Sandbox Code Playgroud)

php oop laravel

1
推荐指数
1
解决办法
4793
查看次数

标签 统计

git ×1

laravel ×1

oop ×1

php ×1