All Questions
425 questions
0
votes
1
answer
230
views
MYSQL error: SQLSTATE[HY000] [2002] No such file or directory (FEDORA LARAVEL)
I have an aplication that works with angularjs and its backend is on Laravel. I'm working on Fedora 37.
The back is in a docker container, and I have a local database with mysql.
When I try to query ...
-2
votes
4
answers
248
views
How to "NULL" a column for a user that logs out, Laravel 9
I have done this: https://shouts.dev/articles/how-to-get-online-users-in-laravel
and it works fine.
But I want to get rid of the users that logs out. Otherwise the list will be too large.
This is my ...
0
votes
1
answer
61
views
How to round up number in ng-bind
Here is the code I have
<td><span ng-bind="'$' + (o.Price | number : 2)"></span></td>
In the example above, the result is 68.74.
In order to make this number ...
1
vote
1
answer
3k
views
Angular 7 and laravel-echo
So I'm trying to make backend laravel and frontend Angular to work.
Laravel version 5.8 and Angular 7.2
I have my event
public function broadcastOn()
{
return new Channel('test');
}
public ...
0
votes
1
answer
257
views
Submiting a Form from Angular to Laravel controller
Im trying to submit a form from angular to a controller in laravel because i need to use it to generate the url of the api i need to consume.
I was wondering if someone could give me a hint about how ...
-1
votes
1
answer
51
views
Angularjs Combo box value form submit
This is my angular combobox
<select ui-select2 id="UserID" name="UserID" ng-model="userObjs.UserID"
data-placeholder="UserID" required style="width: 100%;">
<option value="">...
0
votes
0
answers
414
views
How to download repository in zip with github API
I am developing a web app with laravel and angularjs (I am new to both), in which when you click on a button, you must download a github repository (or clone it)
I know that if I add this "href='/:...
2
votes
1
answer
213
views
ng-repeats mutliple times when i call try call this [duplicate]
I am calling ng-repeat on my laravel view ng-repeat call a function from controller that gets the data from database and do some calculations and then reuturing the array but it keeps on returning the ...
0
votes
1
answer
179
views
Load angularjs app dynamically inside a bootstrap modal?
I have a page, index.blade.php. (no angularjs)
<body>
<table>
<!-- If i click on a row, I store its id in a global variable (selected_id),
then I can click ...
0
votes
1
answer
1k
views
PHP Error -- Use of undefined constant x - assumed 'x'
how to get data from table and pass it in controller in json format and get those data in view using angularjs
I want to get data from json encoded variable from controller and show it to view page ...
0
votes
0
answers
34
views
php and angularjs limited offset for paginating
PHP (Laravel 4.2)
//PHP function
$rowsPerPage = 50;
$num = 1;
$offsets = ($num - 1) * $rowsPerPage;
$data['trans'] = Transaction::withoutBranch()
->select('id', 'amount')
->where('payment_date'...
0
votes
1
answer
344
views
How to run AngularJS project with Laravel
I want run my Angular front-end client within Laravale index.html.
I have mange to set up and build both projects. When I open Laravel Client at port 8000 it says it can not find any of the .js files ...
0
votes
2
answers
299
views
How to display default value from the database
I am trying to get data from the database then display the data in input form as default. I'm using angularjs $http get method to retrieve the data but failed.
My laravel route
Route::group(array('...
0
votes
0
answers
28
views
Internal server error while connect Laravel and Angulars
I want to develop simple front end AngularJS and backend Laravel. I don't know why my AngularJS route is not connected with Laravel route. It keep mention as GET http://localhost/api/todos Internal ...
2
votes
2
answers
62
views
Checkbox checked and inserted into database
I'm trying to save the data into the database based on the checkbox. If the checkbox is checked then save, else don't save. My idea is passing the ng-model value to php value then do validation but it ...