Category : Uncategorised

I’m building a app in laravel and now I’m doing a payments resource. The ideia is select many orders in the list to receive in same time. And in this receives can be used many type of payment (money, credit). Now I has this tables order(id, total), paymentTypes(id, paymentName), payments(id, payment_type_id, value) and order_payments(order_id, payment_id). ..

Read more

Please tell me error when I add multi attribute (array) of member it take only first of arrray[0] and not increases index number Please tell in where I problem in this code. Anyone know the problem? It is controller code manage_members_list: public function manage_members_list($id=”) { if ($id > 0) { $arr = Members_list::where([‘id’ => $id])->get(); ..

Read more

I want to get the "BusinessId" of this URL <Route path={[ `${match.url}/Business/:BusinessId/` ]}> <Change/> </Route> But the methods I am getting here and on other websites aren’t helping me that much, I cant use components or anything with this kind of route path declaration (sorry, I am new to react and Laravel) and the thing ..

Read more

I created a Model with another connection string and change table name to answer_sheet_omr. { //protected $table=’answer_sheet_omr’; protected $connection = ‘mysql2′; protected $table=’answer_sheet_omr’; } But after that show the following error SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘hmsprawq_hmspro.answer_sheet_omr’ hmsprawq_hmspro is my default database not in mysql2 database connection. I need an help ..

Read more

I always get the error 500 while it is status 200 in the browse. I have already checked on the other answers but there is no solution. here is the code in UserTest <?php namespace TestsFeature; use TestsTestCase; use IlluminateFoundationTestingWithFaker; use IlluminateFoundationTestingRefreshDatabase; use IlluminateFoundationTestingWithoutMiddleware; class UserTest extends TestCase { /** * A basic test example. ..

Read more

I had a long read and application of the Laravel roles and permissions and was wondering if it’s possible to remove the roles layer and directly assign permissions to users. eg. instead of creating a role that has several permissions, roles_has_permissions, I could create users that has permission, user_has_permission. In theory, it makes sense but ..

Read more

working with Laravel + Vue Project. and I have following code segments in the mainapp.vue file <div class="_1side_menu_list"> <ul class="_1side_menu_list_ul"> <li v-for="(menuItem, i) in permission" :key="i" v-if="permission.length && menuItem.read"> <router-link :to="’/’+menuItem.name"><Icon type="ios-speedometer" /> {{menuItem.resourceName}}</router-link> </li> <li><a href="/logout"><Icon type="ios-speedometer" /> Logout</a></li> </ul> </div> </div> </div> but in the following line v-if="permission.length && menuItem.read" highlighting in the ..

Read more

I’m getting this message when I run npm run dev DisabledForUser Please make sure that the app id is set correctly. I have imported javascript and css in the app.blade.php. Next, in the home.blade.php I’m using a div id="app" and I’m using inside the vue component called client.vue App entry file @extends(‘layouts.app’) @section(‘content’) <div id=”app”> ..

Read more

I’m having issues storing text on Laravel. I’m trying to store product names but some characters (I only found one but I guess there’s more) are not being properly stored on database so when are retrieved are not shown correctly. This is what made me notice: Table <0,5 It should say: Table < 0,5 I’ve ..

Read more

I´m traying to do this query in eloquent. SELECT llamada_estado.desc, count(id_estado) FROM estadisticas INNER JOIN llamada_estado ON estadisticas.id_estado = llamada_estado.id WHERE updated_at BETWEEN ‘2021-11-01’ AND ‘2021-11-30’ GROUP BY estadisticas.id_estado i´m traying this: $query2=Estadisticas::query()->whereDate(‘updated_at’, ‘<=’, $toDate) ->whereDate(‘updated_at’, ‘>=’, $fromDate) ->join(‘llamada_estado’, ‘estadisticas.id_estado’, ‘=’, ‘llamada_estado.id’) ->groupBy(‘estadisticas.id_estado’) ->get(); but always return that x column it´s not included in group ..

Read more

I am unable to get the transactions id from paypal ExpressCheckout method. $provider = new ExpressCheckout; $response = $provider->getExpressCheckoutDetails($request->token); echo "<pre>";print_r($response); Array ( [TOKEN] => EC-79454119W8713794B [BILLINGAGREEMENTACCEPTEDSTATUS] => 1 [CHECKOUTSTATUS] => PaymentActionNotInitiated [TIMESTAMP] => 2021-11-01T04:14:23Z [CORRELATIONID] => f00ab9c2819b4 [ACK] => Success [VERSION] => 123 [BUILD] => 55938276 [EMAIL] => [email protected] [PAYERID] => 238MG2US77AQY [PAYERSTATUS] => ..

Read more

I have a laravel and angular application structure is as follows : projectname |_backend (laravel) |_frontend (Angular) Angular app contains dist folder that is created after build. As I’m new to angular I want to know how I can host it on server. I will host it inside public_html sub folder. Thanks Source: Laravel 5 ..

Read more