laravel

how to get json values from db in edit page in laravel

∥☆過路亽.° 提交于 2021-02-11 14:19:39
问题 Hi guys i have form with multiple sections so on time of insert i am storing the particular sections which ever i have choose. so those values i am storing it in json format in db.Now i want to get it in my edit page only those particular sections values.. Here is my function from where i am storing all json code: function toggler(section_value, from_where) { var html_question_section = ''; var html_question_section_display = ''; var section_counter = 0; if(from_where == 'question') {

Why is my $items doesn't hold a group of $item? Laravel 8 Ecommerce

安稳与你 提交于 2021-02-11 14:19:37
问题 I'm from the same post here but I've found the root problem why is my quantity won't increment but I don't know how to solve this. The problem is at my isset function (in Cart.php), because I tried to echo something there and just realized the function isn't running. This is the error pops up when I removed isset function at the if($this->items). I tried to dd($items) too, and it said null. Why is my $items isn't holding a group of $item? Do you guys know why and how to solve this? p/s: from

How to make a Edit after making the Create

我们两清 提交于 2021-02-11 14:15:48
问题 Im doing a crud for my Vue/Laravel application, my add button is working fine but im having trouble making work my edit/update button. I dont get any erros from backend or frontend, just dont work This is my code: Frontend: async addDespesa() { let uri = "api/despesas"; const response = await axios.post(uri, this.despesa).then((response) => { this.despesas.push({ des: this.despesa.des, valr: this.despesa.valr, stt: this.despesa.stt, vencc: this.despesa.vencc, emiss: this.despesa.emiss, });

Why local storage is changing every entry in task list

余生颓废 提交于 2021-02-11 14:15:12
问题 The local storage should only hold state for the task where the completed button has been pressed. Currently when I refresh the page all the tasks are marked as completed. <template> <button type="button" v-bind:class="order_button_style" @click="on_order_button_click()"> {{ buttonText }} </button> </div> </template> <script> export default { props: 'itemId', required: true, data() { return { index: 'this.itemId', status: '' } }, methods: { on_order_button_click() { this.status = !this.status

Pusher client side /pusher/auth returning Error 500 (Internal Server Error)

坚强是说给别人听的谎言 提交于 2021-02-11 14:05:37
问题 I'm working on developing a quick chat application to develop my skills with pusher and decided to start getting into private channels. The public channel application I had on the same client-side code and slightly tweaked App\Events\chatmessagesent event (changed return new Channel(...) to return new PrivateChannel(...)) is returning a peculiar error. When I load up the chat page, even though I just tweaked the code to point to a private server, I now get a Error 500 when trying to post to

I tried to open my Laravel application which was developed 2yrs ago and when I register a user I see the following error [duplicate]

前提是你 提交于 2021-02-11 13:53:06
问题 This question already has answers here : Error “Trying to access array offset on value of type null” laravel 5.8.26 Php 7.4.2 (4 answers) Closed 7 months ago . Trying to access array offset on value of type null if ($previous['type'] === EmailLexer::S_BACKSLASH 回答1: The error states that the variable $previous, which you expect to be an array, is actually null. You can't use an array offset on a null. Given that you said it was developed 2 years ago, probably some library changed and has

Laravel doesn't keep session when use SQLite database

倖福魔咒の 提交于 2021-02-11 13:52:47
问题 I converted my MySQL database to SQLite one, but now the login system is not working anymore. I'm using DATABASE=sqlite and SESSION_DRIVER=file . What's wrong? When I type my email and password and press Login, the system redirects me at Login page again without any error messages. I tried to change the redirect route after login many times, and only that are unauthenticated routes are working; This is because Auth::user or auth()->user() are Undefined objects . The login is going well,

I tried to open my Laravel application which was developed 2yrs ago and when I register a user I see the following error [duplicate]

廉价感情. 提交于 2021-02-11 13:51:21
问题 This question already has answers here : Error “Trying to access array offset on value of type null” laravel 5.8.26 Php 7.4.2 (4 answers) Closed 7 months ago . Trying to access array offset on value of type null if ($previous['type'] === EmailLexer::S_BACKSLASH 回答1: The error states that the variable $previous, which you expect to be an array, is actually null. You can't use an array offset on a null. Given that you said it was developed 2 years ago, probably some library changed and has

Laravel doesn't keep session when use SQLite database

…衆ロ難τιáo~ 提交于 2021-02-11 13:51:09
问题 I converted my MySQL database to SQLite one, but now the login system is not working anymore. I'm using DATABASE=sqlite and SESSION_DRIVER=file . What's wrong? When I type my email and password and press Login, the system redirects me at Login page again without any error messages. I tried to change the redirect route after login many times, and only that are unauthenticated routes are working; This is because Auth::user or auth()->user() are Undefined objects . The login is going well,

Reduce database write on notification system or change approbate database?

两盒软妹~` 提交于 2021-02-11 13:50:49
问题 We have a web app which requires to send lots of notifications to users (over 1,000,000 notifications per day). We use Laravel and MySQL for the database. I loop through a group of users send notifications and save it to the database. Let's say if I want to send a group of 1000 users. The data will be written to the DB 1000 time. As I said, we have over 1,000,000 notifications per day, which take so many resources. What's the appropriate way to approach this problem? I should change to a new