I am using Laravel version "5.8" I have installed composer require simplesoftwareio/simple-qrcode – to generate qr code to generate a Qr code on view i am using this code {!! QrCode::size(80)->generate(‘test data’ ); !!} but when i send the view over a mail , i dont get the Qr code over mail this is my ..
Category : laravel
in my laravel app I want to enable fcm with laravel-notification-channels /fcm, this package now uses kreait/laravel-firebase for firebase credentials setup. First I installed laravel notifications package without issues, with this command: composer require laravel-notification-channels/fcm:~2.0 Now, when I try to install laravel-firebase with the following command: composer require kreait/laravel-firebase I get the following composer warning ..
I upgraded the php version and now loadViewsFrom method from vendor/illuminate/support/ServiceProvider.php generate an error, because $this->app->config[‘view’] is not an array. protected function loadViewsFrom($path, $namespace) { if (is_array($this->app->config[‘view’][‘paths’])) { foreach ($this->app->config[‘view’][‘paths’] as $viewPath) { if (is_dir($appPath = $viewPath.’/vendor/’.$namespace)) { $this->app[‘view’]->addNamespace($namespace, $appPath); } } } $this->app[‘view’]->addNamespace($namespace, $path); } How can I fix that without upgrade the laravel ..
The botman widget appears okay but when i open it to view the chat frame it gives error 404 inside the chat frame. This is the part where i declare the botman widget <script> var botmanWidget = { frameEndpoint: ‘configbotmanchat.html’ aboutText: ‘ssdsd’, introMessage: "✋ Hi! I’m form ItSolutionStuff.com" title: ‘BotMan’ }; </script> <script src=’https://cdn.jsdelivr.net/npm/[email protected]/build/js/widget.js’></script> and ..
My data phone data was serialised stored in the meta column and i trying to use Eloquent ancestors unserialised the phone data for query purpose. Eloquent protected $appends = [‘meta’, ‘phone’]; public function getMetaAttribute() { return $this->attributes[‘meta’]; } public function getPhoneAttribute() { return Arr::get(@unserialize($this->attributes[‘meta’]),’phone’); } The code above able to pull out the phone data ..
Currently, my Excel file is being created showing all the records in DB. The problem is that it shows the deleted items too. Here is the code that I’ve for my current excel file: public function collection() { $resultados = collect( DB::select(‘SELECT articulos.id, articulos.codigo_comercial, articulos.codigo_interno, articulos.descripcion, coalesce( articulos.marca, ‘SIN MARCA’ ) as marca, coalesce( articulos.modelo, ..
i use Fast Excel library from https://github.com/rap2hpoutre/fast-excel, can i put return from ->download(‘file.xlsx’) to Guzzle post request? with this code i’m not get anything $httpClient = new GuzzleHttpClient([ ‘headers’ => [ ‘Authorization’ => mdmTokenGenerate($token), ‘Accept’ => ‘application/json’ ], ‘verify’ => false ]); $response = $httpClient->post( "{$client->domain}/api/push", [ ‘multipart’ => [ [ ‘name’ => ‘file’, ‘contents’ ..
public function decreaseSingleProduct(Request $request,$id){ $prevCart =$request->session()->get(‘cart’); $cart=new Cart ($prevCart); if($cart->items[$id][‘quantity’]>1){ $product =Product::find($id); $cart->items[$id][‘quantity’]=$cart->items[$id][‘quantity’]-1; $cart->items[$id][‘totalSinglePrice’]=$cart->items[$id] [‘quantity’]* $product[‘price’]; $cart->updatePriceAndQuantity(); $request-> session()->put(‘cart’,$cart); } return redirect()->route("cartproducts"); } Sourc..
i´m traying to associate one img, dowloaded with curl with this function: $rawImage = file_get_contents($url); if($rawImage) { mkdir($fullpath.$result->id); file_put_contents($fullpath.$result->id."/".basename($url), $rawImage); // associate img excell to restaurant. $this->store($result->uuid, $rawImage); } ok, i have my img, and now i´m traying to associate to my user profile. All media, (img, video, etc..) it´s in db table Media. I´m ..
I Can’t access to phpMyAdmin page even the apache and MySQL are connected when I click admin button to show PHPMyAdmin page its give me this error : HTTP Error 404.0 – Not Found The resource you are looking for has been removed, had its name changed, or is temporarily unavailable. Sourc..