我有这样的路线
Route::get('/vcs-integrations/{vcs-provider}/authenticate','VcsIntegrationsController@authenticate');
处理我正在使用的模型路由绑定的路由的方法如下
<?php
....
use App\Models\VcsProvider;
....
class VcsIntegrationsController extends Controller
{
public function authenticate(VcsProvider $vcsPr
我有一个与laravel和通配符域的代码工作。我喜欢使用控制器的子域路由,我有一个这样的路由:
# Tester. URI : www.example.com/tester/{any}
Route::get('/tester/{any}', 'tester@Modules');
然后我想使用子域路由,所以我像这样更改了路由代码:
#Subdomain route. URL : qwerty.example.com, it same as www.example.com/tester/qwerty
Route::group(array('domain
我在本地创建了一个带有LAMP的服务器,我希望后端使用Laravel,前端使用Angular 7。
我把这个放到我的web.php文件中:
<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for yo
我已经设置了分页,它工作正常。但我无法重定向到当前页面。
如果我在currencies?page=2上调用update方法。我将重定向到currencies而不是currencies?page=2。
Controller - index function
public function index()
{
$currencies = Currency::paginate(5);
return view('admin.currencies.index')
->withCurrencies($currencies);
}
Control
我有一条基本路线是这样的:
Route::prefix('/group')->group(function () {
// Some routes here
Route::prefix('/{uuid}')->group(function () {
// Some routes here
Route::get('/user/{id}', 'Controller@preview')->name('view-user')->where('i
我正在使用Pusher构建通知,并且我接收到一些页面的‘路由’作为一个JavaScript变量 现在我想把这个变量注入到通知栏中,作为一个链接到在变量中确定的一些页面,我试着创建href,并使用laravel url方法把路由放在里面,以便从任何页面访问它。下面是代码 channel.bind('App\\Events\\Councilcreated', function (data) {
var a = document.createElement('a');
a.setAttribute("href", "{{ ur
你好,我的Laravel5.4有一个奇怪的问题,我一开始就添加了新的路由来加载dashboad视图,但是它没有工作,而是列出了public/admin中的本地文件夹,即使当我使用路由返回字符串而不是使用该时,也出现了相同的结果。
控制器
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class AdminController extends Controller
{
public function dashboard()
{
return view('a