laravel-blade

    2熱度

    2回答

    我有一個表statuses(列id,statusename),並且希望通過此表動態顯示「選擇」列表。 我的模型: namespace App; use Illuminate\Database\Eloquent\Model; class Statuses extends Model { protected $table = "CaseStatus";

    0熱度

    1回答

    我注意到,在舊的laravel blade模板中,當表單驗證失敗時,建議使用舊的(鍵,值)來檢索舊值。 (處理驗證的控制器方法將回發到請求對象中原樣數據的表單) 是否仍有必要在最新的laravel版本中使用它? 何時應該使用laravel blade模板上的表單域上的舊(鍵,值)函數?

    0熱度

    1回答

    我正在使用Blade指令中的@lang來處理轉換。 我想使用PHP功能作用於這個指令「return語句」中的觀點,例如: strtoupper(@lang('messages.test')) 那是可能的刀片?

    0熱度

    2回答

    我使用Sage 9 WordPress入門主題。 https://github.com/roots/sage 將模板包含在Laravel Blade中並傳遞一些數據後。 @include ('partials.filter-archive', ['taxonomy' => 'project-type']) 我怎麼能在我的模板中使用它partials.filter-archive? {{ $ta

    0熱度

    2回答

    好吧,我有一個小問題。 當用戶點擊一個鏈接時,它會轉到網站/創建/業務這是很好,但如果沒有做任何事情,但鏈接再次點擊,無論出於何種原因它去網站/創建/業務/創建/業務。 <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="

    0熱度

    3回答

    我想輸出一個變量包含一部分的URL到我的網頁上的Javascript。當我這樣做時,它會將&更改爲&,這會破壞URL。 我使用str_replace,html_entity_decode,htmlspecialchars_decode嘗試,但結果總是相同&,而不是&。 我怎麼能用&代替&? 這是我的控制器: //here we catch the query public

    0熱度

    2回答

    我有一個頁面,顯示了企業名稱在數據庫中檢索像這樣的鏈接: 控制器: public function viewBusiness() { // Return our "website" object $business = Business::all(); // Pass the contents of the "html" property to the view return view('

    0熱度

    1回答

    我創建了一個master.blade.php文件如下從數據庫中的數據顯示: <!DOCTYPE html> <html lang="en"> <head> @include('layouts.head_files') </head> <body> <!-- START MAIN WRAPPER --> <div id="wrap

    0熱度

    2回答

    我嘗試這樣的: <div class="media-body"> @foreach($categories as $category) @php $category[] = $category->name @endphp @endforeach {{ implode(",", $category) }} </div> 如果代碼執行,存在錯誤: 取消定義

    0熱度

    1回答

    this is the code in the main.blade.php so i place an @yield('content') inside the div tags of my bootstrap template but it's that getting the display that should be on the home.blade.php <div class=