CoderFunda
  • Home
  • About us
    • Contact Us
    • Disclaimer
    • Privacy Policy
    • About us
  • Home
  • Php
  • HTML
  • CSS
  • JavaScript
    • JavaScript
    • Jquery
    • JqueryUI
    • Stock
  • SQL
  • Vue.Js
  • Python
  • Wordpress
  • C++
    • C++
    • C
  • Laravel
    • Laravel
      • Overview
      • Namespaces
      • Middleware
      • Routing
      • Configuration
      • Application Structure
      • Installation
    • Overview
  • DBMS
    • DBMS
      • PL/SQL
      • SQLite
      • MongoDB
      • Cassandra
      • MySQL
      • Oracle
      • CouchDB
      • Neo4j
      • DB2
      • Quiz
    • Overview
  • Entertainment
    • TV Series Update
    • Movie Review
    • Movie Review
  • More
    • Vue. Js
    • Php Question
    • Php Interview Question
    • Laravel Interview Question
    • SQL Interview Question
    • IAS Interview Question
    • PCS Interview Question
    • Technology
    • Other

11 July, 2023

Three devs opinions on how to structure Laravel apps

 Programing Coderfunda     July 11, 2023     No comments   

Steve McDougall, Brent Roose, and Bobby Bouwmann joined in to discuss structuring Laravel applications. The post Three devs opinions on how to structure Laravel apps appeared first on Laravel News. Join the Laravel Newsletter to get Laravel articles like this directly in your inbox. ---
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

10 July, 2023

Weekly /r/Laravel Help Thread

 Programing Coderfunda     July 10, 2023     No comments   

Ask your Laravel help questions here. To improve your chances of getting an answer from the community, here are some tips: * What steps have you taken so far? * What have you tried from the documentation? * Did you provide any error messages you are getting? * Are you able to provide instructions to replicate the issue? * Did you provide a code example? * Please don't post a screenshot of your code. Use the code block in the Reddit text editor and ensure it's formatted correctly. For more immediate support, you can ask in the official Laravel Discord. Thanks and welcome to the /r/Laravel community! submitted by /u/AutoModerator [link] [comments]
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

09 July, 2023

Hide mapbox and planet (or other tilemap) API from the frontend

 Programing Coderfunda     July 09, 2023     No comments   

I'm trying to hide the access token/api key from the client side. I'm using svelte (not sveltekit) with dotenv to store my keys. .env MAPBOX=someaccesstokenkeys PLANET=someaccesstokenkeys STYLE=stylefolder/styleid The map worked just fine, no error. But when I check the source from the element inspector, the keys are still not hidden. Are there any alternatives? or I have to redo this in sveltekit? EDIT: I've tried svelteKit, put my secretkey on .env, and import from page.server.js. From there, I return the data (I don't know any way other than this) and I assume this also expose the secretkey on client-side. +page.server.js import { MAPBOX, PLANET, STYLE } from '$env/static/private' export async function load() { // this will expose to client-side return { mapbox: MAPBOX, planet: PLANET, styleid: STYLE } } Are there anyway to hide it from the client-side?
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

08 July, 2023

Laravel Octane vs Opcache

 Programing Coderfunda     July 08, 2023     No comments   

I just checked laravel octane doc and it boots your application once, keeps it in memory, opcache stores precompiled script bytecode in shared memory, thereby removing the need for PHP to load and parse scripts on each request. English is my second language so both of them sound similar to me. Can somebody explain what is real difference between them in more practical way? submitted by /u/azamjon9 [link] [comments]
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

07 July, 2023

Design Emails and Send Them Via API with MailCarrier

 Programing Coderfunda     July 07, 2023     No comments   

MailCarrier is an open-source web app built with Laravel and Filament, where you can design emails once and send them via an API call. The post Design Emails and Send Them Via API with MailCarrier appeared first on Laravel News. Join the Laravel Newsletter to get Laravel articles like this directly in your inbox. ---
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

06 July, 2023

ChatGPT Mock API Generator for Laravel

 Programing Coderfunda     July 06, 2023     No comments   

The ChatGPT Mock API Generator package for Laravel generates smart API mocks in Laravel using ChatGPT prompts. The post ChatGPT Mock API Generator for Laravel appeared first on Laravel News. Join the Laravel Newsletter to get Laravel articles like this directly in your inbox. ---
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

05 July, 2023

What are you guys using for shopping cart/e-commerce solutions?

 Programing Coderfunda     July 05, 2023     No comments   

I built an e-commerce application all the way back in L5 using just a simple shopping cart package. I was wanting to get into a multi-vendor marketplace type of e-commerce site and basic searches didn’t pull up anything specific. I planned on custom writing everything with InertiaJS and Vue 3 so any packages around Laravel/Vue 3 that could ease some of my work would be great. submitted by /u/wtfElvis [link] [comments]
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

04 July, 2023

Writing and debugging Eloquent queries with Tinkerwell

 Programing Coderfunda     July 04, 2023     No comments   

In this article, let's look into the options that you can use with Tinkerwell to write and debug Eloquent queries easier. The post Writing and debugging Eloquent queries with Tinkerwell appeared first on Laravel News. Join the Laravel Newsletter to get Laravel articles like this directly in your inbox. ---
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

03 July, 2023

libxml2-Question about xmlCreateFileParserCtxt

 Programing Coderfunda     July 03, 2023     No comments   

I'm confused about the return value. I think the ret is a newly allocated memory, and I need to free it by using xmlFreeParserCtxt. But when I remove xmlFreeParserCtxt, I found there is no error and I'm sure the ret value is not NULL!(I use fsanitize=address to detect) If the ret value of xmlCreateFileParserCtxt is not NULL, is it possible that it isn't newly allocated? My code: #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main() { const char* xmlFilePath = "example.xml"; // Create a parser context for parsing an XML file xmlParserCtxtPtr ctxt = xmlCreateFileParserCtxt(xmlFilePath); if (ctxt == NULL) { printf("Failed to create parser context for file: %s\n", xmlFilePath); return 1; } // Cleanup // xmlFreeParserCtxt(ctxt); return 0; } First, I add the xmlFreeParserCtxt(ctxt);, I'm sure there is no error msg. And then, I delete this line. I compile this code by: gcc ./test.c -g -lxml2 -fsanitize=address.I think I should got error output, but nothing happened. No memleaks!
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Client not receiving session data from server using Node, Passport JS, and cookie-session

 Programing Coderfunda     July 03, 2023     No comments   

so i've been using development servers this entire time, and everything's worked fine. Now, as I've deployed my client and backend, i'm running into an issue where my client cannot grab the sessional data from the cookie. i've checked both the backend and client cookies, and it seems like the session and session.sig are identical, so i don't know what's the deal... here's the relevant code: my backend: server.js: dotenv.config({ path: "./.env" }); const cookieKey = process.env.COOKIE_KEY; const express = require("express"); const cookieSession = require("cookie-session"); const connectDB = require("./config/db"); const passport = require("passport"); const PORT = process.env.PORT || 4500; const cors = require("cors"); connectDB(); const app = express(); //middleware app.use(express.json()); app.use( cors({ origin: true, // replace with your frontend domain credentials: true, }) ); app.use( cookieSession({ maxAge: 24 * 60 * 60 * 1000, // 1 day keys: [cookieKey], cookie: { secure: true, sameSite: "none", }, }) ); app.use(passport.initialize()); app.use(passport.session()); const authentication = require("./routes/Authentication.js"); app.use("/api/v1/auth", authentication); const tabs = require("./routes/Tabs.js"); // Adjust the path as necessary app.use("/api/v1/tabs", tabs); const preferences = require("./routes/Preferences.js"); app.use("/api/v1/preferences", preferences); const google = require("./routes/Google.js"); // Adjust the path as necessary app.use("/api/v1/google", google); app.listen(PORT, () => console.log("Server is connected")); authentication.js: dotenv.config({ path: "./.env" }); const sucessRedirectURL = process.env.SUCCESS_REDIRECT_URL; const express = require("express"); const passport = require("passport"); require("../services/Passport"); const router = express.Router(); router.get( "/google", passport.authenticate("google", { scope: ["profile", "email", "https://www.googleapis.com/auth/calendar"], accessType: "offline", approvalPrompt: "force", }) ); router.get( "/google/callback", passport.authenticate("google", { successRedirect: sucessRedirectURL, }) ); router.get("/me", (req, res) => { if (req.user) { res.send(req.user); } else { res.status(401).json({ message: "Not authenticated" }); } }); router.get("/logout", (req, res) => { console.log("logging out"); req.logout(); res.redirect("/"); }); module.exports = router; and my own service file, passport.js: dotenv.config({ path: "./.env" }); const googleClientID = process.env.GOOGLE_CLIENT_ID; const googleClientSecret = process.env.GOOGLE_CLIENT_SECRET; const backendAppURL = process.env.BACKEND_APP_URL; const passport = require("passport"); const GoogleStrategy = require("passport-google-oauth20"); const User = require("../models/User"); //when a user logs in, we get a 'user object' which is serialized to our session by storing a user's ID, //which is called automatically after logging passport.serializeUser((user, done) => { done(null, user.id); }); //now, when we want to take the data stored in our session, we use the ID to recreate the full user object on //each request, which is automatically done on each request passport.deserializeUser((id, done) => { User.findById(id).then((user) => { done(null, user); }); }); //this code happens first to find/create a user object passport.use( new GoogleStrategy( { clientID: googleClientID, clientSecret: googleClientSecret, callbackURL: backendAppURL + "/api/v1/auth/google/callback", //FULL CALLBACK URL IN PRODUCTION VS RELATIVE PATH IN DEVELOPMENT }, async (accessToken, refreshToken, profile, done) => { try { const existingUser = await User.findOneAndUpdate( { googleId: profile.id }, { accessToken, refreshToken, name: profile.displayName, avatarUrl: profile.picture, isVerified: profile.emails[0].verified, } ); if (existingUser) { console.log("Existing user found:", existingUser); return done(null, existingUser); } const user = await new User({ accessToken, refreshToken, name: profile.displayName, email: profile.emails[0].value, googleId: profile.id, avatarUrl: profile.picture, isVerified: profile.emails[0].verified, }).save(); console.log("New user saved:", user); done(null, user); } catch (error) { console.error("Error during authentication: ", error); done(error); } } ) ); here's the backend cookie:
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

02 July, 2023

Canvas - not drawing at correct position

 Programing Coderfunda     July 02, 2023     No comments   

I have a canvas wrapped in dialog element and I have implemented a drawing app so I can draw something on canvas but it's not drawing on correct position of touch Html close Open #d { border:none;outline:none; padding:0; } Js const ctx = c.getContext("2d") const size = 5 , Color = "red" , cx = ((screen.width - c.width ) / 2) - 25, cy = ((screen.height - c.height) / 2) - 25 console.log(cx,cy) let sx = 0 , sy = 0 c.ontouchstart = (e) => { const t = e.touches[0] sx = t.clientX - cx sy = t.clientY - cy } c.ontouchmove = (e) => { const t = e.touches[0] ctx.beginPath() ctx.moveTo(sx,sy) ctx.lineTo(t.clientX - cx, t.clientY - cy) ctx.lineWidth = size ctx.strokeStyle = Color ctx.lineCap = "round" ctx.stroke() sx = t.clientX - cx sy = t.clientY - cy }
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

01 July, 2023

Raw Query Output With Bindings is Coming to Laravel 10

 Programing Coderfunda     July 01, 2023     No comments   

Laravel 10 is getting a long-awaited feature to get the raw SQL query, including bindings. The post Raw Query Output With Bindings is Coming to Laravel 10 appeared first on Laravel News. Join the Laravel Newsletter to get Laravel articles like this directly in your inbox. ---
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

30 June, 2023

Pines: An Alpine and Tailwind UI Library

 Programing Coderfunda     June 30, 2023     No comments   

Pines UI is an Alpine and Tailwind UI Library by Tony Lea. Pines is a library of animations, sliders, tooltips, accordions, modals, and more! The post Pines: An Alpine and Tailwind UI Library appeared first on Laravel News. Join the Laravel Newsletter to get Laravel articles like this directly in your inbox. ---
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

29 June, 2023

ModuleNotFoundError: No module named '_psutil_osx'

 Programing Coderfunda     June 29, 2023     No comments   

When I wanted to import '_psutil_osx' ,Error happend. This is the clause import _psutil_osx and the error Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named '_psutil_osx' And I confirmed that I have installed psutil, that's the result of pip list Package Version ---------- ------- pip 23.1.2 psutil 5.9.5 PyGreSQL 5.2.4 PyYAML 6.0 setuptools 67.6.1 six 1.16.0 wheel 0.40.0` ps: I runned this on Apple Silicon (M1) I want to import _psutil_osx success
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

28 June, 2023

Generate Code in Laravel with Synth

 Programing Coderfunda     June 28, 2023     No comments   

The Synth package for Laravel that helps you generate code and perform various tasks in your Laravel application. The post Generate Code in Laravel with Synth appeared first on Laravel News. Join the Laravel Newsletter to get Laravel articles like this directly in your inbox. ---
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

27 June, 2023

Mongoose. Remove fields on save that are not present in schema

 Programing Coderfunda     June 27, 2023     No comments   

I have a doc saved in MongoDB like this: { title: 'title', author: 'author name', body: 'the body', admin: 'admin user' } And this is the schema in Mongoose: var blogSchema = new Schema({ title: String, author: String, body: String }); I would like that on save, the "admin" field was removed from the doc, is this possible? Can I automatize this in event pre-save? Thanks.
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

26 June, 2023

Meta Whatsapp messages API can't send template with image header

 Programing Coderfunda     June 26, 2023     No comments   

I'm trying to send message templates through meta's Whatsapp messges API. I can successfully send templates with text variables but not with media elements such as a header image. When I try send the request I get the expected response with a wamid for the sent message but I never get a status update on this message or any info of why it didn't arrive (the message never makes it to the other end). For normal text messages and other non-media templates I do get status updates correctly on my webhook. I've been readying their documentation and it's all over the place, i've been trying everything. This is an example of the body from my request (everything else is correct [auth token etc..]). body: { "messaging_product": "whatsapp", "recipient_type": "individual", "to": "PHONE_NUMBER", "type": "template", "template": { "name": "request_permission", "language": { "code": "LANGUAGE_CODE" }, "components": [ { "type": "header", "parameters": [ { "type": "image", "image": { "link": "https://www.gstatic.com/webp/gallery3/1.sm.png" } } ] }, { "type": "body", "parameters": [ { "type": "text", "text": "TEXT_STRING" }, { "type": "text", "text": "TEXT_STRING" } ] }, { "type": "button", "sub_type": "quick_reply", "index": "0", "parameters": [ { "type": "payload", "payload": "PAYLOAD" } ] }, { "type": "button", "sub_type": "quick_reply", "index": "1", "parameters": [ { "type": "payload", "payload": "PAYLOAD" } ] } ] } } Meta docs: https://developers.facebook.com/docs/whatsapp/cloud-api/reference/messages#template-messages I tried with different URLs for the image file, different formats and sources, on their own docs they have internet urls (without token protection) and it's supposed to work. I still got the same issue. Edit: Apparently, issues with message templates have been reported since 2 weeks ago and although the bug has been identified and assigned it hasn't been resolved. Users have been having issues with delays and failed message delivery with custom templates. Bug URL: https://developers.facebook.com/support/bugs/587271766844244/
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

25 June, 2023

onVisitHighlightedLine cannot push classname using Rehype Pretty code

 Programing Coderfunda     June 25, 2023     No comments   

I'm using Rehype Pretty code to add syntax highlighting to my MDX blog. But I'm not able to get the line highlighting to work. As per the documentation and few other resources, below is the configuration that should work, but I'm getting the following error. _mdx_bundler_entry_point-f0976fc3-b34d-45fd-a559-565325298b22.mdx:0:0: ERROR: [plugin: @mdx-js/esbuild] TypeError: Cannot read properties of undefined (reading 'push') at onVisitHighlightedLine const options = { theme: 'one-dark-pro', // 'github-dark-dimmed' is default onVisitLine(node) { // Prevent lines from collapsing in `display: grid` mode, and allow empty if (node.children.length === 0) { node.children = [{ type: "text", value: " " }] } }, onVisitHighlightedLine(node) { node.properties.className.push("line--highlighted"); }, onVisitHighlightedWord(node) { node.properties.className = ["word--highlighted"] }, };
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

24 June, 2023

🔥 Download the Response of an HTTP Request in Laravel

 Programing Coderfunda     June 24, 2023     No comments   

Marcel Pociot shared a tip on using the Laravel HTTP client method sink() to write a response to a file The post 🔥 Download the Response of an HTTP Request in Laravel appeared first on Laravel News. Join the Laravel Newsletter to get Laravel articles like this directly in your inbox. ---
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

23 June, 2023

JetBrains announced a bundle for Laravel developers: PhpStorm + Laravel Idea plugin

 Programing Coderfunda     June 23, 2023     No comments   

JetBrains, the company behind PhpStorm, has exciting news for Laravel developers. They have introduced a special bundle offer that includes PhpStorm and the Laravel Idea plugin at a 50% discount. The post JetBrains announced a bundle for Laravel developers: PhpStorm + Laravel Idea plugin appeared first on Laravel News. Join the Laravel Newsletter to get Laravel articles like this directly in your inbox. ---
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

22 June, 2023

Mock your API responses with ChatGPT

 Programing Coderfunda     June 22, 2023     No comments   

Hi guys, We just recently launched a small package that allows you to dynamically mock API responses with ChatGPT to quickly jumpstart your project — basically seeders 2.0! We'd love to hear some feedback and anything you'd like us to add to the package, and hopefully it saves you some time and spices up your mock responses. https://github.com/yllw-digital/laravel-chatgpt-mock-api Thanks! submitted by /u/zizipo [link] [comments]
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

21 June, 2023

Laravel Tailwind Merge

 Programing Coderfunda     June 21, 2023     No comments   

Laravel Tailwind Merge is a package that automatically resolves Tailwind CSS class conflicts in Laravel Blade files. The post Laravel Tailwind Merge appeared first on Laravel News. Join the Laravel Newsletter to get Laravel articles like this directly in your inbox. ---
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

20 June, 2023

Lemon Squeezy for Laravel 1.0 is Here

 Programing Coderfunda     June 20, 2023     No comments   

The Lemon Squeezy for Laravel package released v1.0. Learn about this exciting package to make subscription billing, payments, and license keys a breeze! The post Lemon Squeezy for Laravel 1.0 is Here appeared first on Laravel News. Join the Laravel Newsletter to get Laravel articles like this directly in your inbox. ---
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

19 June, 2023

Get max and min value's unique id while using group by

 Programing Coderfunda     June 19, 2023     No comments   

I have a table with columns: unique_id, product, root_location, price with more than 50 million records I want the result to be product, min_price, min_price_unique_id, max_price, max_price_unique_id My query: select product , min(price) as min_price , max(price) as max_price from mytable group by product How to get the unique id's of min and max price?
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

18 June, 2023

Sending files in blocks

 Programing Coderfunda     June 18, 2023     No comments   

I have a problem with sending an Excel file in blocks. I have this code that is supposed to send the Excel file in blocks, and it works fine up to a certain point. However, the issue is that it only writes the first 100 records. After that, the file size remains the same as if it had all 10,000 records, but when opened, it only has 100 records. @Override public void generateAndSendExcelChunks(ServletOutputStream outputStream) throws IOException { Workbook workbook = new SXSSFWorkbook(); Sheet sheet = workbook.createSheet("Datos"); int totalRows = 10000; int rowsPerChunk = 100; int currentRow = 0; while (currentRow < totalRows) { int endRow = currentRow + rowsPerChunk; endRow = Math.min(endRow, totalRows); generateChunkData(sheet, currentRow, endRow); workbook.write(outputStream); outputStream.flush(); sheet = workbook.createSheet("Datos"); currentRow = endRow; } workbook.close(); } private void generateChunkData(Sheet sheet, int startRow, int endRow) { for (int i = startRow; i < endRow; i++) { Row row = sheet.createRow(i); Cell cell = row.createCell(0); cell.setCellValue("Valor " + (i + 1)); } } The line sheet = workbook.createSheet("Datos"); doesn't work because it tries to create a sheet with a name that already exists. If I try to get a reference to that sheet, it gives a "stream closed" error on this line: workbook.write(outputStream);. The intended functionality is to store all the information in the same sheet without overwriting anything.
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

17 June, 2023

Restore Database Backups in Laravel

 Programing Coderfunda     June 17, 2023     No comments   

The Laravel Backup Restore is a package to restore database backups made with Spatie's laravel-backup package. The post Restore Database Backups in Laravel appeared first on Laravel News. Join the Laravel Newsletter to get Laravel articles like this directly in your inbox. ---
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

16 June, 2023

Resend Email Package for Laravel and PHP

 Programing Coderfunda     June 16, 2023     No comments   

Resend for Laravel is a package that integrates the Laravel mail service with the Resend API. The post Resend Email Package for Laravel and PHP appeared first on Laravel News. Join the Laravel Newsletter to get Laravel articles like this directly in your inbox. ---
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

15 June, 2023

Working with third party services in laravel

 Programing Coderfunda     June 15, 2023     No comments   

A little over two years ago, I wrote a tutorial on how you should work with third-party APIs. Things have changed in two years, so let's approach this again. The post Working with third party services in laravel appeared first on Laravel News. Join the Laravel Newsletter to get Laravel articles like this directly in your inbox. ---
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

14 June, 2023

🔥 Define Casts in a Query

 Programing Coderfunda     June 14, 2023     No comments   

Learn how to define Eloquent casts at query time, giving you the power of SQL with types provided by casts. The post 🔥 Define Casts in a Query appeared first on Laravel News. Join the Laravel Newsletter to get Laravel articles like this directly in your inbox. ---
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

13 June, 2023

Lifecycle hooks in Laravel - How to build them, and why you'd want to

 Programing Coderfunda     June 13, 2023     No comments   

We, as programmers, have to break complicated problems down into smaller chunks. Sometimes we have to interact with this code differently based on some external context. Let's explore one of these scenarios, and I'll be sure to guide you along the process with me. The post Lifecycle hooks in Laravel - How to build them, and why you'd want to appeared first on Laravel News. Join the Laravel Newsletter to get Laravel articles like this directly in your inbox. ---
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg
Newer Posts Older Posts Home

Meta

Popular Posts

  • Write API Integrations in Laravel and PHP Projects with Saloon
    Write API Integrations in Laravel and PHP Projects with Saloon Saloon  is a Laravel/PHP package that allows you to write your API integratio...
  • Credit card validation in laravel
      Validation rules for credit card using laravel-validation-rules/credit-card package in laravel Install package laravel-validation-rules/cr...
  • iOS 17 Force Screen Rotation not working on iPAD only
    I have followed all the links on Google and StackOverFlow, unfortunately, I could not find any reliable solution Specifically for iPad devic...
  • C++ in Hindi Introduction
    C ++ का परिचय C ++ एक ऑब्जेक्ट ओरिएंटेड प्रोग्रामिंग लैंग्वेज है। C ++ को Bjarne Stroustrup द्वारा विकसित किया गया था। C ++ में आने से पह...
  • Send message via CANBus
    After some years developing for mobile devices, I've started developing for embedded devices, and I'm finding a new problem now. Th...

Categories

  • Ajax (26)
  • Bootstrap (30)
  • DBMS (42)
  • HTML (12)
  • HTML5 (45)
  • JavaScript (10)
  • Jquery (34)
  • Jquery UI (2)
  • JqueryUI (32)
  • Laravel (1017)
  • Laravel Tutorials (23)
  • Laravel-Question (6)
  • Magento (9)
  • Magento 2 (95)
  • MariaDB (1)
  • MySql Tutorial (2)
  • PHP-Interview-Questions (3)
  • Php Question (13)
  • Python (36)
  • RDBMS (13)
  • SQL Tutorial (79)
  • Vue.js Tutorial (68)
  • Wordpress (150)
  • Wordpress Theme (3)
  • codeigniter (108)
  • oops (4)
  • php (853)

Social Media Links

  • Follow on Twitter
  • Like on Facebook
  • Subscribe on Youtube
  • Follow on Instagram

Pages

  • Home
  • Contact Us
  • Privacy Policy
  • About us

Blog Archive

  • September (100)
  • August (50)
  • July (56)
  • June (46)
  • May (59)
  • April (50)
  • March (60)
  • February (42)
  • January (53)
  • December (58)
  • November (61)
  • October (39)
  • September (36)
  • August (36)
  • July (34)
  • June (34)
  • May (36)
  • April (29)
  • March (82)
  • February (1)
  • January (8)
  • December (14)
  • November (41)
  • October (13)
  • September (5)
  • August (48)
  • July (9)
  • June (6)
  • May (119)
  • April (259)
  • March (122)
  • February (368)
  • January (33)
  • October (2)
  • July (11)
  • June (29)
  • May (25)
  • April (168)
  • March (93)
  • February (60)
  • January (28)
  • December (195)
  • November (24)
  • October (40)
  • September (55)
  • August (6)
  • July (48)
  • May (2)
  • January (2)
  • July (6)
  • June (6)
  • February (17)
  • January (69)
  • December (122)
  • November (56)
  • October (92)
  • September (76)
  • August (6)

Loading...

Laravel News

Loading...

Copyright © CoderFunda | Powered by Blogger
Design by Coderfunda | Blogger Theme by Coderfunda | Distributed By Coderfunda