Has anyone tried firebase SDK with Laravel?

|
shubhamdhyani 2019-09-04 11:27:23
https://github.com/Chumper/Zipper

GitHub – Chumper/Zipper: This is a simple Wrapper around the ZipArchive methods with some handy functionsGitHub
This is a simple Wrapper around the ZipArchive methods with some handy functions – GitHub – Chumper/Zipper: This is a simple Wrapper around the ZipArchive methods with some handy functions
ransikoo 2019-09-04 11:31:11
i want create chat betwen user and producer ? pls help me for create this in laravel
ransikoo 2019-09-04 11:33:37
i need a tutorial about this
ransikoo 2019-09-04 11:38:29
tanx bro
ransikoo 2019-09-04 11:41:50
i saw this film older but i shoud find better way for slove this chalenge
ErSoul 2019-09-04 12:44:00
Hello, has anyone tried firebase SDK with Laravel?

I’ve created a Service provider following this guide, but at the end, it throws the error:

Unresolvable dependency resolving [Parameter #0 [ <required> $app ]] in class IlluminateSupportServiceProvider

This happens when injectin the Service provider to the controller constructor

How to integrate Laravel with Google FirebaseMedium
This article explains how to register an application in Google Cloud Firebase and integrate it in a Laravel application.
oxbir 2019-09-04 13:38:47
laravel_discuss-12478.jpg

oxbir 2019-09-04 13:38:47
laravel_discuss-12477.jpg

oxbir 2019-09-04 13:38:47
laravel_discuss-12476.jpg

oxbir 2019-09-04 13:38:47
Why did not save my faqs in table?
oxbir 2019-09-04 13:43:50
My taste faqs table
hamidshariati_ir 2019-09-04 13:47:56
is it good to use mongodb as machine learning
oxbir 2019-09-04 13:54:31
I know but it didn’t save
oxbir 2019-09-04 13:56:50
I use xampp and phpmyadmin
akh_Amirul_Idzham 2019-09-04 16:38:56
Hello guys, I’ve a question. If I build an app using laravel 5.8, should I migrate to 6.0? From news, it is said that 6.0 is a LTS type
praneet81 2019-09-04 17:14:31
oxbir 2019-09-04 13:38:47

First of all did you create a custom request root model binding called FaqRequest?

praneet81 2019-09-04 17:15:12
oxbir 2019-09-04 13:38:47

Second you just need to instantiate using new Faq();

aikeng 2019-09-04 17:24:58
Hi everyone,

I want to run a schedule cron job on laravel 5.8, how do I get it done

aikeng 2019-09-04 17:28:13
I did, it throws errors, of can not redeclare the class
aikeng 2019-09-04 17:31:33
Yeah, the code to execute is a loop
aikeng 2019-09-04 17:37:04
This is my code:

<?php

namespace AppConsoleCommands;

use IlluminateConsoleCommand;

use AppSetting;
use AppTrade;

use IlluminateSupportFacadesDB;

class SamSchedule extends Command
{
/
* The name and signature of the console command.
*
* @var string
*/
protected $signature = ‘trade:bot’;

/
* The console command description.
*
* @var string
*/
protected $description = ‘Sam the auto trading bot’;

/
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}

/
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
$auto_trade = $setting->value(‘auto_trade’);
$acc_balance = $setting->value(‘auto_trade_acc_balance’);
$invested = $setting->value(‘auto_trade_invested_amount’);
$return_percent = $setting->value(‘auto_trade_return_percent’);

if($auto_trade == 1){
$accounts = DB::table(‘accounts’)->where(‘investment’,’>=’,$acc_balance)->whereIsActive(1)->get();

$profit = $invested*$return_percent/100;

foreach ($accounts as $account){
$type = ($this->type() == ‘+’) ? 1 : 0;
$return = ($type== 1) ? ‘balance + ‘.$profit : ‘balance – ‘.$invested;
$received = ($type == 1) ? $profit : 0-$invested;
DB::table(‘accounts’)->where(‘user_id’, ‘=’, $account->user_id)->update([‘balance’=>DB::raw(“$return”)]);
Trade::create([
‘user_id’ => $account->user_id,
‘investment’ => $invested,
‘received’ => $received,
‘type’ => $type,
‘entry’ => now()
]);
}
return “Auto Trading Complete”;
}
return “Auto Trading Could not run at this time”;
}

protected function type()
{
$type = mt_rand(0,1);
if($type == 1){
return ‘+’;
}
return ‘-‘;
}

}

aikeng 2019-09-04 17:40:53
aikeng 2019-09-04 17:37:04
This is my code:

<?php

namespace AppConsoleCommands;

use IlluminateConsoleCommand;

use AppSetting;
use AppTrade;

use IlluminateSupportFacadesDB;

class SamSchedule extends Command
{
/
* The name and signature of the console command.
*
* @var string
*/
protected $signature = ‘trade:bot’;

/
* The console command description.
*
* @var string
*/
protected $description = ‘Sam the auto trading bot’;

/
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}

/
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
$auto_trade = $setting->value(‘auto_trade’);
$acc_balance = $setting->value(‘auto_trade_acc_balance’);
$invested = $setting->value(‘auto_trade_invested_amount’);
$return_percent = $setting->value(‘auto_trade_return_percent’);

if($auto_trade == 1){
$accounts = DB::table(‘accounts’)->where(‘investment’,’>=’,$acc_balance)->whereIsActive(1)->get();

$profit = $invested*$return_percent/100;

foreach ($accounts as $account){
$type = ($this->type() == ‘+’) ? 1 : 0;
$return = ($type== 1) ? ‘balance + ‘.$profit : ‘balance – ‘.$invested;
$received = ($type == 1) ? $profit : 0-$invested;
DB::table(‘accounts’)->where(‘user_id’, ‘=’, $account->user_id)->update([‘balance’=>DB::raw(“$return”)]);
Trade::create([
‘user_id’ => $account->user_id,
‘investment’ => $invested,
‘received’ => $received,
‘type’ => $type,
‘entry’ => now()
]);
}
return “Auto Trading Complete”;
}
return “Auto Trading Could not run at this time”;
}

protected function type()
{
$type = mt_rand(0,1);
if($type == 1){
return ‘+’;
}
return ‘-‘;
}

}

And here is the output error:

[04-Sep-2019 13:58:01 UTC] PHP Fatal error: Cannot declare class AppConsoleCommandsSamSchedule, because the name is already in use in /home2/public_html/app/Console/Commands/Sam.php on line 82

DesolatorMagno 2019-09-04 17:45:25
try composer dump-autoload
aikeng 2019-09-04 18:01:16
DesolatorMagno 2019-09-04 17:45:25
try composer dump-autoload

Didn’t work either

aikeng 2019-09-04 18:19:02
Sam.php
aikeng 2019-09-04 18:19:37
This fixed the error, thanks a lot sir
DesolatorMagno 2019-09-04 18:20:16
Just to be sure search for
class SamSchedule
in you text editor, to see if you declare it somewhere else.
leondesign 2019-09-04 18:22:43
Anyone tried Laravel vapor?
aikeng 2019-09-04 18:29:59
DesolatorMagno 2019-09-04 18:20:16
Just to be sure search for
class SamSchedule
in you text editor, to see if you declare it somewhere else.

Thanks, it has been fixed

Cybervant 2019-09-04 22:17:50
skys215 2019-08-26 19:32:00
php artisan route:list and find for register

O

Shenks77 2019-09-05 08:25:13
Does anyone know about codeingniter
Rbmulani 2019-09-05 08:52:20
Yes
2019-09-05 09:48:36
laravel_discuss-12521.jpg

2019-09-05 09:48:36
this foreign key (stock_id) should pick IDs from table sales and make them show up as a dropdown in the sales form. However as you will see👇they are displayed side by side.
2019-09-05 09:49:30
Hi, help I am stuck👆
2019-09-05 09:51:18
public function create()
{
$sales = DB::table(‘stocks’)->select(‘stock_id’)->get();
return view(‘sales.create’)->with(‘sales’,$sales);
}

I am using that create function to collect stock IDs from the database

2019-09-05 09:52:19
<div class=”form-group”>
{{Form::label(‘stock_id’, ‘Stock ID’)}}
@foreach($sales as $sale)
{{ Form::select(‘stock_id’,$sale ,[‘class’=> ‘form-control’, ‘placeholder’ => ‘Stock ID’])}}
@endforeach
</div>

This is how my create.blade.php looks like

2019-09-05 09:52:50
laravel_discuss-12525.jpg

2019-09-05 09:53:40
help me fix it to be a dropdown of stock IDs only
HbJ23 2019-09-05 09:58:57
Need a school management admin panel in laravel..any one please
ikudratov 2019-09-05 09:59:37
2019-09-05 09:53:40
help me fix it to be a dropdown of stock IDs only

I would like to suggest you to use ajax or vue which included into laravel!

HbJ23 2019-09-05 10:03:19
I need just for my practise
leondesign 2019-09-05 11:46:48
Shenks77 2019-09-05 08:25:13
Does anyone know about codeingniter

Is shit

KodeBuzz 2019-09-05 13:26:38
hi, i need help
KodeBuzz 2019-09-05 13:26:48
i have a relational database,
KodeBuzz 2019-09-05 13:27:33
$total_transx = Transaction::with([‘status’, ‘sellers’, ‘sellers.users’])
->where(function($query) use ($user, $sellerId){
$query->where(‘seller_phone’, $user->phone_number)
->orWhere(‘beneficiary_merchant_id’, $sellerId);
});
KodeBuzz 2019-09-05 13:28:29
but i want to add that the total_transx should select transaction where a seller is under an admin
KodeBuzz 2019-09-05 13:29:23
the beneficiary_merchant_id is the foreign key to another table to perform check
KodeBuzz 2019-09-05 13:29:32
who can help me with this please
software_engineer_n 2019-09-05 14:42:23
laravel_discuss-12538.jpg
Hi guys can I do that
|