<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Fatima Senouci on Medium]]></title>
        <description><![CDATA[Stories by Fatima Senouci on Medium]]></description>
        <link>https://medium.com/@fatima210395?source=rss-db6d06b5f991------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*lUU8woSzTtVRbgpO4KodQw.jpeg</url>
            <title>Stories by Fatima Senouci on Medium</title>
            <link>https://medium.com/@fatima210395?source=rss-db6d06b5f991------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 19:40:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@fatima210395/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Laravel Setup & JSON Basics — My Notes]]></title>
            <link>https://medium.com/@fatima210395/laravel-setup-json-basics-my-notes-f764d7fd6e68?source=rss-db6d06b5f991------2</link>
            <guid isPermaLink="false">https://medium.com/p/f764d7fd6e68</guid>
            <category><![CDATA[laravel]]></category>
            <category><![CDATA[json]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[setup]]></category>
            <category><![CDATA[learning]]></category>
            <dc:creator><![CDATA[Fatima Senouci]]></dc:creator>
            <pubDate>Fri, 19 Dec 2025 21:11:29 GMT</pubDate>
            <atom:updated>2025-12-19T21:11:29.559Z</atom:updated>
            <content:encoded><![CDATA[<h3>Laravel Setup &amp; JSON Basics — My Notes</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SfO6xtBBRHPDNBH-Pxw_mA.png" /></figure><h3>Introduction</h3><p>Hello everyone,</p><p>I decided to write this article about Laravel Setup &amp; JSON Basics primarily for myself, as a way to better understand and memorize its technical concepts. Writing helps me organize my thoughts and create my own explanations, so if one day I forget hhhh something or need a quick reminder, I can easily return to this article.</p><p>At the same time, I always try to simplify technical concepts and explain them in an easy and accessible way, so that beginners can understand and start learning without difficulty.</p><p>In this article, I will present a simple and beginner-friendly explanation and describe the essential steps to start working with Laravel</p><h3>Laravel Project Setup</h3><p>To create a new Laravel project, run the following command in your terminal:</p><pre>composer create-project laravel/laravel mynewsite</pre><p>After installation, open the project in <strong>VS Code</strong>.<br>You can open the VS Code terminal from the menu (three dots → Terminal).</p><h3>Artisan Command Line Tool</h3><p>Laravel provides <strong>Artisan</strong>, a command-line tool that helps us manage tasks.</p><p>To see available commands:</p><pre>php artisan</pre><p>To run the local development server:</p><pre>php artisan serve</pre><p>This command starts the Laravel application.</p><h3>Routes and Views (Web Pages)</h3><p>Routes are defined in:</p><pre>routes/web.php</pre><p>Views (pages) are located in:</p><pre>resources/views</pre><p>By default, Laravel displays:</p><pre>welcome.blade.php</pre><p>You can edit this file or create a new one, for example:</p><pre>test.blade.php</pre><p>Then link it to a route in web.php.</p><h3>From Web Pages to APIs</h3><p>While Laravel can display web pages, its <strong>main strength is building APIs</strong>.</p><p>APIs allow the backend to send data to frontend applications, usually in <strong>JSON format</strong>.</p><p>With recent Laravel updates, API files are not included by default. The command php artisan install:api installs the necessary API structure in your project.</p><pre>php artisan install:api</pre><h3>Testing API Responses</h3><p>To test API requests and responses, install <strong>Thunder Client</strong> as a VS Code extension.</p><p>It helps visualize responses clearly, especially <strong>JSON responses</strong>, which is essential for API development.</p><h3>Controllers and Routes</h3><p>Controllers are located in:</p><pre>app/Http/Controllers</pre><p>Routes call controller functions.<br>Controllers handle logic and return responses (often JSON).</p><p>Each route is connected to a specific controller method.</p><h3>Route Parameters</h3><p>Route parameters allow dynamic data in URLs.</p><p>If you need conditions or dynamic behavior, you define parameters in routes and handle them inside controller methods.</p><h3>Database and Migrations</h3><p>Migrations are used to create and manage database tables.</p><p>Database configuration is done in the .env file (for example, using MySQL instead of SQLite).</p><p>Each database table has a <strong>Model</strong>.</p><p>Create a model with migration:</p><pre>php artisan make:model Title -m</pre><p>Create model, migration, and controller together:</p><pre>php artisan make:model Title -mc</pre><h3>MVC Architecture (Simplified)</h3><p>Laravel follows the <strong>MVC pattern</strong>:</p><ul><li><strong>Model</strong> → handles database data</li><li><strong>Controller</strong> → handles requests and logic</li><li><strong>View / JSON</strong> → displays data</li></ul><p>In APIs, data is usually returned as <strong>JSON instead of views</strong>.</p><h3>CRUD Operations and JSON</h3><p>CRUD means:</p><ul><li>Create</li><li>Read</li><li>Update</li><li>Delete</li></ul><p>Each CRUD action has:</p><ul><li>A route</li><li>A controller function</li><li>A JSON response</li></ul><p>To reset the database:</p><pre>php artisan migrate:fresh</pre><h3>Validation Before JSON Response</h3><p>Validation ensures user input is correct before saving data.</p><p>Best practice is using a request class:</p><pre>php artisan make:request StoreRequest</pre><p>Validation rules are written inside this class.</p><h3>What is JSON?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*e13xzmtMUBC99ty_" /></figure><p><strong>JSON (JavaScript Object Notation)</strong> is a lightweight data format used to exchange data between systems.</p><p>Originally, JSON was developed to be used with the JavaScript language. However, today it is not limited to JavaScript only. JSON is supported by most programming languages such as PHP, Java, Python, and others.</p><p>The main role of JSON is <strong>data exchange between a client and a server</strong>. The client sends a request to the server, and the server responds with data, usually in JSON format.</p><h3>Advantages of JSON</h3><p>JSON has several advantages:</p><ul><li>Lightweight and fast</li><li>Easy to read and understand</li><li>Compatible with almost all programming languages</li></ul><h3>Why do we need to use JSON?</h3><ul><li><strong>Data transfer</strong><br> In web applications, API requests usually return responses in JSON format.</li><li><strong>Building APIs</strong><br> Almost all modern APIs use JSON to exchange data between the frontend and the backend.</li></ul><h3>What is the role of JSON?</h3><p>JSON provides a standard and structured way to represent data. It allows different systems and technologies to communicate easily, even if they are built using different programming languages.</p><h3>How to write JSON</h3><p>A JSON object is written using key–value pairs:</p><pre>{<br>&quot;name&quot;: &quot;Fatima&quot;,<br>&quot;age&quot;: 30,<br>&quot;isAvailable&quot;: true,<br>&quot;vehicles&quot;: [&quot;car&quot;, &quot;boat&quot;]<br>}</pre><ul><li>Keys are written as strings</li><li>Values can be strings, numbers, booleans, or arrays</li></ul><h3>How to use JSON in Laravel</h3><p>In Laravel, JSON is commonly used when returning responses from controllers, especially when building APIs.</p><p>If a controller returns plain text or large amounts of data, the response may be difficult to read and manage. Returning a JSON response makes the data clearer, structured, and easier to understand.</p><p>To test and visualize the response, I used <strong>Thunder Client</strong> in VS Code. It allows us to send HTTP requests and easily inspect server responses.</p><p>The screenshots included show a comparison between a response returned as plain text and a response returned in JSON format. The JSON response is more readable and more convenient for developers, especially when working with large datasets.</p><h3>Most Popular HTTP Status Codes</h3><p>HTTP status codes are standard response codes returned by a server to indicate the result of a client’s request. They help communicate whether an operation was successful, failed, or requires further action. These codes are used across web applications, APIs, and browsers to ensure clear and consistent communication between clients and servers.</p><p>Understanding the most commonly used HTTP status codes is essential for debugging, improving user experience, and building reliable web applications.</p><h3>Success responses:</h3><ul><li><strong>200</strong> — Request successful</li><li><strong>201</strong> — Resource created</li><li><strong>204</strong> — No content returned</li></ul><h3>Error responses:</h3><ul><li><strong>400</strong> — Bad request</li><li><strong>401</strong> — Unauthorized</li><li><strong>403</strong> — Forbidden</li><li><strong>404</strong> — Not found</li><li><strong>500</strong> — Internal server error</li></ul><p>These status codes are usually sent with <strong>JSON responses</strong>.</p><h3>Conclusion</h3><p>I hope this article has given you a clear understanding of Laravel Setup &amp; JSON Basics and If you found this type of article helpful, feel free to leave a comment. Your feedback motivates me to write more content and share additional explanations in the future.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b8nPH_HuzcMOSWIexdDo9w.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f764d7fd6e68" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Time Travel: Is the Future an Echo of the Past?]]></title>
            <link>https://medium.com/@fatima210395/time-travel-is-the-future-an-echo-of-the-past-fcdada812c0b?source=rss-db6d06b5f991------2</link>
            <guid isPermaLink="false">https://medium.com/p/fcdada812c0b</guid>
            <category><![CDATA[self]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[science]]></category>
            <dc:creator><![CDATA[Fatima Senouci]]></dc:creator>
            <pubDate>Fri, 28 Mar 2025 19:00:55 GMT</pubDate>
            <atom:updated>2025-03-28T19:02:12.616Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dZVD11GaP16ZW08c" /><figcaption>Photo by Tom Podmore on Unsplash</figcaption></figure><p>Since the dawn of imagination, humanity has yearned to transcend time—drawn to the mysteries of the future and the allure of days gone by. But what if the past holds secrets far more advanced than we dare to dream?<br>On quiet nights steeped in reflection, I find myself captivated by tales of ancient civilizations. Were our ancestors truly as primitive as we assume, or did they possess a sophistication we’ve yet to reclaim? The Sumerians, Babylonians, and Pharaohs left behind awe-inspiring monuments—mere shadows of their former glory.</p><p>What lies buried beneath the sands of time might reshape everything we believe.</p><h4>The Past and Science Fiction: Echoes of a Forgotten Age?</h4><p>If history pulls us backward, science fiction propels us into worlds of dazzling technology and boundless possibility. Yet, what if these visions of tomorrow are not mere fantasies, but whispers of a past we’ve lost? The innovations we hail as modern might simply be fragments of wisdom once known, then forgotten.<br>Consider the towering pyramids of Egypt, feats of engineering that still confound experts today. Or the Babylonian star-charts, revealing an astronomical mastery far ahead of their era. Did these cultures harbor insights that slipped through the cracks of history? Perhaps our progress is less a leap forward than a slow rediscovery of brilliance buried in time.<br>Mysterious Discoveries: Clues to a Hidden Legacy?</p><p>Certain relics defy our understanding of the past, hinting at a deeper story:</p><ul><li>The Baghdad Battery: A clay jar unearthed in Iraq, its components eerily akin to a primitive battery. Did ancient minds toy with electricity long before Edison?</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*YC14D4-aCmKkIgb3_icz8A.jpeg" /><figcaption>The Baghdad Battery</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/302/1*b6DtMTQu8fryswcfCXXRwA.jpeg" /><figcaption>The Baghdad Battery</figcaption></figure><ul><li>The Antikythera Mechanism: A Greek marvel, this analog computer tracked planets and predicted celestial events with uncanny precision.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*IrdabzY66Hbssnr2Tbo3Vw.jpeg" /><figcaption>The Antikythera Mechanism</figcaption></figure><ul><li>The Stone Spheres of Costa Rica: Perfectly carved orbs scattered across the landscape, their purpose and crafting methods still shrouded in mystery.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*EQKzxGZF0N84Tc-Ttpu7bA.jpeg" /><figcaption>The Stone Spheres of Costa Rica</figcaption></figure><ul><li>Ancient Footprints in Fossilized Layers: Human-like tracks pressed into stone dated back millions of years, challenging the timelines we hold dear, though their origins remain contested.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*8xLbgUpPrVysGkqG0kqYQQ.jpeg" /><figcaption>Ancienne footprint</figcaption></figure><h4>What If We Unraveled the Past?</h4><p>Imagine if we poured our energies into decoding the enigma of ancient civilizations. Could it transform how we see the present—and even the future? Answers to today’s riddles might lie waiting in the dust, revealing that our advancements are but a continuation of a legacy long obscured.</p><h4>A Final Thought</h4><p>Time travel may not be pure fiction after all. History itself is the truest time machine, unveiling the past anew with every discovery we dare to pursue. Would you like me to go on? The journey is yours to choose, dear reader.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fcdada812c0b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>