Skip to content
Advertisement

Laravel Carbon usage

I have a query.So when i try get data from database,it show me null. $heading = DB::table(‘heading’)->where(‘heading.post_date’,Carbon::today())->first();

how to take string from this type of data?

a:2:{i:3;s:16:”GLS PARTICULIERS”;i:1;s:16:”GLS PARTICULIERS”;} I have this type of data in multiples rows. What I want is just to take out the name in ” ” that’s it I …

Delete a HTMLtable row using AJAX

Frameworks used: JavaScript, AJAX, HTML. Cannot use JQuery Have to display SQL table on page Last column of the table should contain an image which acts like a delete button On clicking that delete image, the row should be deleted from HTML table and SQL table In my code the onClick is not working HTML code table rows displayed by

How to transform this array in php? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year. Improve this question I want to sort the array by the “biomasse” and “solar”. For example: The “summe” should be sorted by the years.

Sum of amount for each date having ‘type’ column in sql

I have table expense_incomes, the structure for table is: I want the sum of expenses and incomes in two different arrays groupBy date. I have tried this code. (In the above Example) I want to push expense into expense_array and income into income_array for 2021-04-02. What I am getting now: Expected Array Structure: Answer I believe you want an aggregated

FormRequest message in laravel 8 not show messages

In my laravel 8 app I am trying to create two files CreateUserRequest and updateUserRequest to use personalized validations. In the method rules I´m calling my model’s variable $createRules but when I send my form, this don´t send, don´t show messages, error… Nothing. I have attached CreateUserRequest, my model and controller’s store method: CreateUserRequest Model Controller’s store method In the

Advertisement