Category : uri

I’m using Laradock as a development environment and using the laravel-echo-server included in it. For public channels it works normally, however when I try to use private channels I get the following error on laravel-echo-server. laravel-echo-server_1 | [1:19:22 AM] – Sending auth request to: localhost/broadcasting/auth laravel-echo-server_1 | laravel-echo-server_1 | [1:19:22 AM] – Error authenticating IHZ3HwHH9iLqb2uKAAAW ..

Read more

I am using laravel 7 and need to check Request::path() where Url will have dynamic values Route in web.php Route::get(‘/user/portfolio/{id}/{cid}’, ‘[email protected]’)->name(‘user_portfolio_view’); URL on browser http://cat-and-pillar.ets/user/portfolio/34/1 where 34 and 1 always dynamic. i need to add some condition on all these type of URl Thank you in advance Sourc..

Read more

I have this problem with url with multiple parameters please help me. Route::get(‘export/{start}/{end}’,[AppHttpControllersExportController::class, ‘export’])->name(‘export’); And this is my controller public function export(Request $request,$start = 0,$end = 0) { return Excel::download(new ExportAttendance(strval($start),strval($end)),’Attendance.xlsx’); } Sourc..

Read more

Im passing in a job Id that dynamically needs to populate the uri in guzzle 7 here is the client: $client = new GuzzleHttpClient([ ‘base_uri’ => ‘https://portal.2nformserver.com/arcgis/rest/services/getLocalRefData/GPServer/Get%20Local%20Reference%20Data/’, [‘headers’ => [ ‘Accept’ =>’application/json’ ]] ]); here is the promise: $promise = $client->requestAsync(‘GET’, ‘jobs/’, [‘query’ => [ "f"=>"json" ]]); I am needing to pass in a $jobId ..

Read more

I am using Laravel 6 and want to change the structure of some of my routes. When registering the following route like this: Route::view(‘/my-article’, ‘articles.my-article’)->name(‘my-article’); everything works as it should. But when changing the URL like this, adding /articles: Route::view(‘/articles/my-article’, ‘articles.my-article’)->name(‘my-article’); Suddenly no CSS is applied anymore. No Bootstrap and no own stylesheet. JS script ..

Read more