diff --git a/portfolio/app/Models/Article.php b/portfolio/app/Models/Article.php index e6ef81c..1074ce5 100644 --- a/portfolio/app/Models/Article.php +++ b/portfolio/app/Models/Article.php @@ -9,7 +9,7 @@ class Article extends Model { use HasFactory; - protected $fillable = ['title', 'content', 'category_id', 'author_id']; + protected $fillable = ['title', 'content']; /** * Define the relationship with the Category model. diff --git a/portfolio/database/articles.sql b/portfolio/database/articles.sql index 0fd803d..8a018b1 100644 --- a/portfolio/database/articles.sql +++ b/portfolio/database/articles.sql @@ -1,9 +1,23 @@ -INSERT INTO articles (title, content, author_name, created_at, updated_at) VALUES -('Welcome to my blog!', 'Welcome to my personal site! I created this space as both a digital journal and a portfolio where I can document my journey as a junior software engineer. I believe that sharing our stories, our projects, and even our setbacks can help us grow—not just individually, but as a community of learners and doers. +INSERT INTO articles (title, content, created_at, updated_at) +VALUES ( + 'Welcome to My Page!', + 'Welcome to my personal site! I created this space as both a digital journal and a portfolio where I can document my journey as a student and aspiring software engineer. I believe that sharing our stories, our projects, and even our setbacks can help us grow—not just individually, but as a community of learners and doers. -This blog is a place for me to discuss my latest projects, share thoughts on software development trends, and offer a glimpse into my journey as a computer science student. Expect to find a mix of technical tutorials, personal reflections, and commentary on the tech world. Whether you’re here to read about my current projects, or simply connect, I’m glad to have you here!', 'Sami Nouidri', date(), date()), -('The Internet Archive goes down.', 'Most of us are used to seeing websites go down following attacks from malicious actors. However, this time, the target wasn’t just another website—it was the Internet Archive, a digital library with one of the most comprehensive collections of web content in history. This shutdown serves as a stark reminder of the importance of data preservation, as well as the vulnerability of online repositories that are meant to stand as our collective memory. +This blog is a place for me to discuss my latest projects, share thoughts on software development trends, and offer a glimpse into my journey as a computer science student. Expect to find a mix of technical tutorials, personal reflections, and commentary on the tech world. Whether you’re here to read about my current projects, gain insight into what it’s like to pursue a degree in software engineering, or simply connect, I’m glad to have you here! + +In addition, this site serves as a living portfolio, showcasing projects I’ve worked on both academically and personally. You’ll find links to my GitHub projects, my LinkedIn, and even a contact form if you’re interested in collaborating or simply sharing feedback. If you’re passionate about coding, problem-solving, or learning new tech skills, I think you’ll feel right at home here. So, grab a cup of coffee, and let’s dive into the world of tech together!', + '2024-10-29 00:00:00', + '2024-10-29 00:00:00' +); + +INSERT INTO articles (title, content, created_at, updated_at) +VALUES ( + 'The Internet Archive Goes Down', + 'Most of us are used to seeing websites go down following attacks from malicious actors. However, this time, the target wasn’t just another website—it was the Internet Archive, a digital library with one of the most comprehensive collections of web content in history. This shutdown serves as a stark reminder of the importance of data preservation, as well as the vulnerability of online repositories that are meant to stand as our collective memory. For students, academics, and the general public alike, the Internet Archive is an essential resource, offering free access to millions of books, videos, images, and web pages that would otherwise be lost to time. It even lets users "time-travel" with the Wayback Machine, exploring older versions of websites to track how content, policies, and even design have evolved over the years. -While the outage has been temporary, it highlights two key points: first, the need for stable and resilient data storage systems; second, the potential impacts if we ever lose access to such a vast repository. Many questions arise: How should we back up the web? What roles should governments and organizations play in protecting it? And for those of us in the tech field, how can we contribute to better, more resilient archives that can withstand modern threats? It’s a reminder that the information age is both fragile and essential, deserving of the same protection we’d afford to physical libraries and archives.', 'Sami Nouidri', date(), date()); +While the outage has been temporary, it highlights two key points: first, the need for stable and resilient data storage systems; second, the potential impacts if we ever lose access to such a vast repository. Many questions arise: How should we back up the web? What roles should governments and organizations play in protecting it? And for those of us in the tech field, how can we contribute to better, more resilient archives that can withstand modern threats? It’s a reminder that the information age is both fragile and essential, deserving of the same protection we’d afford to physical libraries and archives.', + '2024-10-29 00:00:00', + '2024-10-29 00:00:00' +); diff --git a/portfolio/resources/views/article.blade.php b/portfolio/resources/views/article.blade.php index f56250e..45e71db 100644 --- a/portfolio/resources/views/article.blade.php +++ b/portfolio/resources/views/article.blade.php @@ -10,26 +10,17 @@
-

{{ $article->title }}

Published on {{ $article->created_at->format('F j, Y') }}

-
{!! nl2br(e($article->content)) !!}

- -
- -

Category: {{ $article->category->name }}

-
- - Back to Home