{"id":621,"date":"2023-11-18T16:43:55","date_gmt":"2023-11-18T16:43:55","guid":{"rendered":"https:\/\/web-design-eastbourne.co.uk\/News\/?p=621"},"modified":"2024-02-24T16:53:44","modified_gmt":"2024-02-24T16:53:44","slug":"understanding-laravel-framework-the-basics","status":"publish","type":"post","link":"https:\/\/web-design-eastbourne.co.uk\/News\/understanding-laravel-framework-the-basics\/","title":{"rendered":"Understanding Laravel PHP Framework \u2013 The Laravel Tutorial for Web Artisans"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\" id=\"h-understanding-laravel-php-framework-the-laravel-tutorial-for-web-artisans\">Understanding Laravel PHP Framework \u2013 The Laravel Tutorial for Web Artisans<\/h1>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"260\" src=\"https:\/\/web-design-eastbourne.co.uk\/News\/wp-content\/uploads\/2023\/11\/laravel-framework-logo-C10176EC8C-seeklogo.com_.png\" alt=\"Understanding Laravel\" class=\"wp-image-628\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Understanding Laravel: A Beginner\u2019s Tutorial to the Powerful PHP Framework<\/h2>\n\n\n\n<p>Laravel is a robust and efficient PHP framework that has gained immense popularity among web developers in recent years. It offers an elegant syntax and a wide range of features that simplify the web development process. In this beginner\u2019s guide, we will explore the key aspects of Laravel, its benefits, and how it can be used to create powerful and scalable web applications.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is Laravel?<\/h2>\n\n\n\n<p>Laravel is an open-source PHP framework that follows the Model-View-Controller (MVC) architectural pattern. It provides a well-structured and expressive syntax, making it easier for developers to write clean and readable code. With Laravel, developers can build web applications that are not only efficient but also maintainable and scalable.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why Use Laravel?<\/h2>\n\n\n\n<p>Laravel offers several advantages that make it a preferred choice among developers. Firstly, it comes with a rich set of features, such as routing, caching, and authentication, which simplifies the development process. Additionally, Laravel has a large and active community, which ensures continuous support and updates. The framework also provides a comprehensive documentation that aids developers in solving any issues they may encounter.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Advantages of Laravel &#8211; Key Features of Laravel<\/h2>\n\n\n\n<p>Before we delve into the specifics, let&#8217;s first understand why Laravel is such a popular choice among developers.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Elegant Syntax: Laravel\u2019s syntax is simple and expressive, making it easy for developers to understand and write code. With features like method chaining and anonymous functions, Laravel allows for efficient and concise coding.<\/li>\n\n\n\n<li>MVC Architecture: Laravel follows the MVC architectural pattern, separating the application\u2019s logic into three distinct layers \u2013 Model, View, and Controller. This separation of concerns promotes code reusability and maintainability.<\/li>\n\n\n\n<li>Database Migration: Laravel\u2019s built-in migration system allows developers to manage database changes easily. It provides a version control system for the database, making it effortless to track and roll back changes if necessary.<\/li>\n\n\n\n<li>Eloquent ORM: Laravel\u2019s Eloquent ORM (Object-Relational Mapping) simplifies database operations by providing an intuitive and fluent interface. It allows developers to interact with the database using PHP code, instead of writing SQL queries.<\/li>\n\n\n\n<li>Blade Templating Engine: Laravel\u2019s Blade templating engine offers a simple and powerful way to create dynamic views. It allows for easy integration of logic within the views, making them reusable and modular.<\/li>\n\n\n\n<li>Authentication and Authorization: Laravel provides a robust system for user authentication and authorization. It includes features such as user registration, login, password reset, and role-based access control, making it effortless to implement secure user management systems.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Getting Started with Laravel<\/h2>\n\n\n\n<p>To begin working with Laravel, you first need to install it on your development environment. The official Laravel documentation provides detailed instructions on installation and setup. Once installed, you can start creating a new Laravel project using the command line.<\/p>\n\n\n\n<p>Laravel also includes a powerful command-line interface known as Artisan, which offers a wide range of commands for various tasks such as generating code, migrating databases, and running tests. Familiarizing yourself with Artisan will greatly enhance your productivity as a Laravel developer.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Installing Laravel<\/h3>\n\n\n\n<p>To start working with Laravel, you&#8217;ll need to install it on your system. Here&#8217;s how you can do it:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Composer Installation<\/strong>: Laravel utilizes Composer, a PHP dependency manager. Install Composer if you haven&#8217;t already.<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>composer global require laravel\/installer<\/code><\/pre>\n\n\n\n<p>2. Create a New Laravel Project: Once Composer is installed, you can create a new Laravel project with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>laravel new my-project<\/code><\/pre>\n\n\n\n<p>3. <strong>Serve Your Application<\/strong>: Laravel&#8217;s development server can be started with the <code>serve<\/code> command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan serve<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Using PHP In Laravel For Building Web Apps<\/h2>\n\n\n\n<p>PHP serves as the backbone for Laravel, providing a solid foundation for building robust and dynamic web applications. With Laravel&#8217;s expressive syntax and comprehensive features, you&#8217;ll find yourself manoeuvring through project development with ease and efficiency.<\/p>\n\n\n\n<p>The flexibility and extensibility of PHP combined with Laravel&#8217;s intuitive structure make for a delightful coding experience.<\/p>\n\n\n\n<p>Whether you&#8217;re a seasoned developer or just starting out, the vibrant community and extensive documentation surrounding PHP and Laravel ensure that help is always within reach. So, roll up your sleeves, grab your favourite caffeinated beverage, and get ready to craft some exceptional web projects using PHP for Laravel \u2013 the possibilities are endless!<\/p>\n\n\n\n<p><a href=\"https:\/\/web-design-eastbourne.co.uk\/News\/what-is-php-the-basics\/\">Read Also &#8216;What Is PHP Hypertext Preprocessor&#8217;<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Understanding Laravel&#8217;s Structure<\/h2>\n\n\n\n<p>Laravel follows a well-defined directory structure, which helps in organizing your application&#8217;s codebase effectively.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Directory Structure<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>app<\/strong>: Contains the core code of your application, including models, controllers, and other PHP classes.<\/li>\n\n\n\n<li><strong>config<\/strong>: Configuration files for various components of your application.<\/li>\n\n\n\n<li><strong>routes<\/strong>: Defines the routes for your application&#8217;s HTTP endpoints.<\/li>\n\n\n\n<li><strong>public<\/strong>: The web server&#8217;s document root. Public assets like CSS, JavaScript, and images are stored here.<\/li>\n\n\n\n<li><strong>database<\/strong>: Contains migration files and seeds for database management.<\/li>\n\n\n\n<li><strong>resources<\/strong>: Views, localization files, and assets like Sass and JavaScript.<\/li>\n\n\n\n<li><strong>tests<\/strong>: Where you can place your PHPUnit tests.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Laravel Features in Depth<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Laravel Blade Templating Engine<\/h3>\n\n\n\n<p>Blade is Laravel&#8217;s powerful templating engine, designed to make writing views simple and expressive.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Blade Syntax<\/h4>\n\n\n\n<p>Blade provides convenient shortcuts for common PHP operations. For example:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>{{ $variable }}<\/code>: Outputs the contents of a variable.<\/li>\n\n\n\n<li><code>@if<\/code>, <code>@else<\/code>, <code>@elseif<\/code>: Control structures for conditional statements.<\/li>\n\n\n\n<li><code>@foreach<\/code>: Iterates over arrays.<\/li>\n\n\n\n<li><code>@include<\/code>: Includes other Blade templates.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Laravel Eloquent ORM<\/h3>\n\n\n\n<p>Eloquent ORM simplifies database operations in Laravel, providing an easy-to-use ActiveRecord implementation.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Defining Models<\/h4>\n\n\n\n<p>Models in Laravel represent database tables. You can define a model using Artisan&#8217;s <code>make:model<\/code> command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan make:model Post<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Querying with Eloquent<\/h4>\n\n\n\n<p>Eloquent allows for expressive querying:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$posts = Post::where('published', true)->orderBy('created_at', 'desc')->get();<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Relationships<\/h4>\n\n\n\n<p>Eloquent makes defining and working with relationships between models straightforward:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>class User extends Model\n{\n\u00a0 \u00a0 public function posts()\n\u00a0 \u00a0 {\n\u00a0 \u00a0 \u00a0 \u00a0 return $this->hasMany(Post::class);\n\u00a0 \u00a0 }\n}<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Authentication in Laravel<\/h3>\n\n\n\n<p>Laravel provides a complete authentication system right out of the box.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Setting Up Authentication<\/h4>\n\n\n\n<p>You can set up authentication scaffolding with Artisan:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan make:auth<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Customizing Authentication<\/h4>\n\n\n\n<p>Laravel&#8217;s authentication system is highly customizable. You can define custom authentication guards, providers, and policies.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Advanced Laravel Techniques<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Laravel Vapor<\/h3>\n\n\n\n<p>Vapor is Laravel&#8217;s serverless deployment platform, designed to simplify deploying and scaling Laravel applications.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Serverless Deployment<\/h3>\n\n\n\n<p>With Vapor, you can deploy your Laravel applications without managing servers. It automatically scales based on demand.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Laravel Ecosystem<\/h2>\n\n\n\n<p>Laravel has a thriving ecosystem with various tools and packages to enhance your development experience.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Laravel Forge<\/h3>\n\n\n\n<p>Forge provides a simple yet powerful server management and deployment tool for Laravel applications.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Laravel Mix<\/h3>\n\n\n\n<p>Mix simplifies asset compilation and management using Webpack. It&#8217;s the perfect tool for managing JavaScript and CSS assets in your Laravel projects.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Some Useful Code Examples For Laravel Developers (CRUD)<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\">Creating a Model and Migration<\/h2>\n\n\n\n<h4 class=\"wp-block-heading\">Step 1: Generate a new model and migration<\/h4>\n\n\n\n<p>First, let&#8217;s create a model for a <code>Post<\/code> and its corresponding migration file.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>php artisan make:model Post -m<\/code><\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>This command will create a&nbsp;<code>Post<\/code> model in <code>app\/Models\/<\/code> directory and a migration file in <code>database\/migrations\/<\/code>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Step 2: Define the <code>posts<\/code> table schema in the migration file<\/h4>\n\n\n\n<p>Open the generated migration file (timestamp will vary) in <code>database\/migrations\/<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ database\/migrations\/&#91;timestamp]_create_posts_table.php\n\nuse Illuminate\\Database\\Migrations\\Migration;\nuse Illuminate\\Database\\Schema\\Blueprint;\nuse Illuminate\\Support\\Facades\\Schema;\n\nclass CreatePostsTable extends Migration\n{\n\u00a0 \u00a0 public function up()\n\u00a0 \u00a0 {\n\u00a0 \u00a0 \u00a0 \u00a0 Schema::create('posts', function (Blueprint $table) {\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 $table->id();\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 $table->string('title');\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 $table->text('content');\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 $table->timestamps();\n\u00a0 \u00a0 \u00a0 \u00a0 });\n\u00a0 \u00a0 }\n\n\u00a0 \u00a0 public function down()\n\u00a0 \u00a0 {\n\u00a0 \u00a0 \u00a0 \u00a0 Schema::dropIfExists('posts');\n\u00a0 \u00a0 }\n}<\/code><\/pre>\n\n\n\n<p><br><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Step 3: Run the migration to create the <code>posts<\/code> table<\/h4>\n\n\n\n<p>Run the migration to create the <code>posts<\/code> table in the database:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php artisan migrate<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Using Eloquent ORM to interact with the <code>Post<\/code> Model<\/h2>\n\n\n\n<h4 class=\"wp-block-heading\">Step 1: Create a new <code>Post<\/code> instance<\/h4>\n\n\n\n<p>Now that the <code>Post<\/code> model is defined, we can create a new post in our controller:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>use App\\Models\\Post;\n\npublic function createPost()\n{\n\u00a0 \u00a0 $post = new Post();\n\u00a0 \u00a0 $post->title = 'My First Post';\n\u00a0 \u00a0 $post->content = 'This is the content of my first post.';\n\u00a0 \u00a0 $post->save();\n\n\u00a0 \u00a0 return response()->json(&#91;'message' => 'Post created successfully']);\n}<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Step 2: Retrieve all posts<\/h4>\n\n\n\n<p>To retrieve all posts from the database:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>use App\\Models\\Post;\n\npublic function getAllPosts()\n{\n\u00a0 \u00a0 $posts = Post::all();\n\n\u00a0 \u00a0 return response()->json($posts);\n}<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Step 3: Update a post<\/h4>\n\n\n\n<p>To update an existing post:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>use App\\Models\\Post;\n\npublic function updatePost($id)\n{\n\u00a0 \u00a0 $post = Post::find($id);\n\u00a0 \u00a0 if (!$post) {\n\u00a0 \u00a0 \u00a0 \u00a0 return response()->json(&#91;'message' => 'Post not found'], 404);\n\u00a0 \u00a0 }\n\n\u00a0 \u00a0 $post->title = 'Updated Title';\n\u00a0 \u00a0 $post->content = 'Updated content goes here.';\n\u00a0 \u00a0 $post->save();\n\n\u00a0 \u00a0 return response()->json(&#91;'message' => 'Post updated successfully']);\n}<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Step 4: Delete a post<\/h4>\n\n\n\n<p>To delete a post:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>use App\\Models\\Post;\n\npublic function deletePost($id)\n{\n\u00a0 \u00a0 $post = Post::find($id);\n\u00a0 \u00a0 if (!$post) {\n\u00a0 \u00a0 \u00a0 \u00a0 return response()->json(&#91;'message' => 'Post not found'], 404);\n\u00a0 \u00a0 }\n\n\u00a0 \u00a0 $post->delete();\n\n\u00a0 \u00a0 return response()->json(&#91;'message' => 'Post deleted successfully']);\n}<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Using Blade Templating Engine for Views<\/h2>\n\n\n\n<h4 class=\"wp-block-heading\">Step 1: Create a Blade template<\/h4>\n\n\n\n<p>Let&#8217;s create a simple Blade template for displaying posts:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ resources\/views\/posts.blade.php\n\n&lt;!DOCTYPE html>\n&lt;html>\n&lt;head>\n\u00a0 \u00a0 &lt;title>Posts&lt;\/title>\n&lt;\/head>\n&lt;body>\n\u00a0 \u00a0 &lt;h1>All Posts&lt;\/h1>\n\u00a0 \u00a0\u00a0\n\u00a0 \u00a0 &lt;ul>\n\u00a0 \u00a0 \u00a0 \u00a0 @foreach($posts as $post)\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 &lt;li>{{ $post->title }}&lt;\/li>\n\u00a0 \u00a0 \u00a0 \u00a0 @endforeach\n\u00a0 \u00a0 &lt;\/ul>\n&lt;\/body>\n&lt;\/html><\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Step 2: Pass data to the Blade view from a Controller<\/h4>\n\n\n\n<p>In your controller, pass data to the Blade view:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>use App\\Models\\Post;\n\npublic function showPosts()\n{\n\u00a0 \u00a0 $posts = Post::all();\n\u00a0 \u00a0 return view('posts', &#91;'posts' => $posts]);\n}<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p>This will render a list of post titles in the <code>posts.blade.php<\/code> view.<\/p>\n\n\n\n<p>These examples cover basic CRUD operations with Laravel using Eloquent ORM and how to render views using the Blade templating engine. Remember to adjust namespaces and paths according to your project structure.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Laravel is not just a framework; it&#8217;s a powerful tool that empowers web artisans to build robust and scalable web applications. With its elegant syntax, modular structure, and rich feature set, Laravel has become the go-to choice for many developers.<\/p>\n\n\n\n<p>In this guide, we&#8217;ve explored the fundamentals of Laravel, from its installation and basic structure to its advanced features like Blade templating, Eloquent ORM, and authentication. We&#8217;ve also touched on advanced techniques such as Laravel Vapor and the broader Laravel ecosystem.<\/p>\n\n\n\n<p>Whether you&#8217;re a seasoned Laravel developer or just starting, mastering Laravel opens up a world of possibilities for building modern web applications. So roll up your sleeves, dive into the Laravel documentation, and start crafting your next web masterpiece!<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Key Takeaways<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Laravel is an open-source PHP framework known for its elegant syntax and powerful features.<\/li>\n\n\n\n<li>The framework follows the MVC architectural pattern, making it easy to build and maintain web applications.<\/li>\n\n\n\n<li>Features like Blade templating, Eloquent ORM, and built-in authentication simplify development tasks.<\/li>\n\n\n\n<li>Advanced techniques like Laravel Vapor and the Laravel ecosystem provide additional tools for deployment and development.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">FAQs<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\">Q: What is Laravel?<\/h2>\n\n\n\n<p>A: Laravel is a PHP web application framework known for its expressive syntax and elegant structure, making it a popular choice for web artisans.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Q: What are the key features of Laravel?<\/h2>\n\n\n\n<p>A: Laravel includes various features such as security enhancements, built-in tools for web application development, and an expressive syntax that simplifies coding.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Q: How does Laravel compare to other PHP frameworks?<\/h2>\n\n\n\n<p>A: Laravel is often compared to other popular PHP frameworks like Symfony and CodeIgniter for its robust features, ease of use, and continuous updates to keep up with modern web development trends.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Q: What are the components of Laravel?<\/h2>\n\n\n\n<p>A: Laravel consists of various components such as Eloquent ORM, routing, authentication, and middleware, which together provide a solid foundation for building web applications.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Q: Is Laravel suitable for beginners?<\/h2>\n\n\n\n<p>A: Yes, Laravel is a beginner-friendly framework with comprehensive documentation, vibrant community support, and a wide range of tutorials available for those who are new to web development.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Q: What sets Laravel apart as a new framework?<\/h2>\n\n\n\n<p>A: Laravel distinguishes itself as a new framework with its modern features, intuitive syntax, and commitment to staying up-to-date with the latest web development practices.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Q: How does Laravel make web development easier?<\/h2>\n\n\n\n<p>A: Laravel makes web development easier by providing developers with tools like Blade templating engine, Artisan command-line interface, and pre-built authentication scaffolding for faster project setup.<\/p>\n\n\n\n<p><strong>See Also<\/strong><\/p>\n\n\n\n<p><a href=\"https:\/\/web-design-eastbourne.co.uk\/News\/what-is-php-the-basics\/\">What Is PHP \u2013 The Basics<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Understanding Laravel PHP Framework \u2013 The Laravel Tutorial for Web Artisans Understanding Laravel: A Beginner\u2019s Tutorial to the Powerful PHP Framework Laravel is a robust and efficient PHP framework that has gained immense popularity among web developers in recent years. It offers an elegant syntax and a wide range of features that simplify the web [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":628,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_edit_lock":["1708797174:2"],"_thumbnail_id":["628"],"_et_pb_use_builder":["off"],"_et_pb_old_content":[""],"_et_gb_content_width":[""],"ast-featured-img":["disabled"],"theme-transparent-header-meta":[""],"adv-header-id-meta":[""],"stick-header-meta":[""],"astra-migrate-meta-layouts":[""],"footnotes":[""],"_links_to":[""],"_links_to_target":[""],"_edit_last":["2"],"cmplz_hide_cookiebanner":[""],"_yoast_wpseo_primary_category":["22"],"_yoast_wpseo_focuskw":["Understanding Laravel"],"_yoast_wpseo_metadesc":["In this beginner's guide, we will expand your understanding of Laravel, and discuss it's benefits for web scalable applications."],"_yoast_wpseo_linkdex":["64"],"_yoast_wpseo_content_score":["30"],"_yoast_wpseo_estimated-reading-time-minutes":["8"],"_yoast_wpseo_wordproof_timestamp":[""],"om_disable_all_campaigns":[""],"_sitemap_exclude":[""],"_sitemap_priority":[""],"_sitemap_frequency":[""],"_monsterinsights_skip_tracking":[""],"_monsterinsights_sitenote_active":[""],"_uf_show_specific_survey":["0"],"_uf_disable_surveys":[""],"site-post-title":["disabled"],"_yoast_indexnow_last_ping":["1708793624"],"_yoast_wpseo_inclusive_language_score":["90"],"_yoast_wpseo_focuskeywords":["[]"],"_yoast_wpseo_keywordsynonyms":["[\"\"]"],"_et_dynamic_cached_shortcodes":["a:0:{}"],"_et_dynamic_cached_attributes":["a:0:{}"]},"categories":[22],"tags":[],"class_list":["post-621","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Understanding Laravel PHP Framework \u2013 The Laravel Tutorial for Web Artisans - Web Design Latest News<\/title>\n<meta name=\"description\" content=\"In this beginner&#039;s guide, we will expand your understanding of Laravel, and discuss it&#039;s benefits for web scalable applications.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/web-design-eastbourne.co.uk\/News\/understanding-laravel-framework-the-basics\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Understanding Laravel PHP Framework \u2013 The Laravel Tutorial for Web Artisans - Web Design Latest News\" \/>\n<meta property=\"og:description\" content=\"In this beginner&#039;s guide, we will expand your understanding of Laravel, and discuss it&#039;s benefits for web scalable applications.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/web-design-eastbourne.co.uk\/News\/understanding-laravel-framework-the-basics\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Design Latest News\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ScriptedArtWebDesign\/\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/keir.chapman.9\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-18T16:43:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-24T16:53:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/web-design-eastbourne.co.uk\/News\/wp-content\/uploads\/2023\/11\/laravel-framework-logo-C10176EC8C-seeklogo.com_.png\" \/>\n\t<meta property=\"og:image:width\" content=\"300\" \/>\n\t<meta property=\"og:image:height\" content=\"260\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Keir Chapman\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@scriptedart\" \/>\n<meta name=\"twitter:site\" content=\"@scriptedart\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Keir Chapman\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Understanding Laravel PHP Framework \u2013 The Laravel Tutorial for Web Artisans - Web Design Latest News","description":"In this beginner's guide, we will expand your understanding of Laravel, and discuss it's benefits for web scalable applications.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/web-design-eastbourne.co.uk\/News\/understanding-laravel-framework-the-basics\/","og_locale":"en_GB","og_type":"article","og_title":"Understanding Laravel PHP Framework \u2013 The Laravel Tutorial for Web Artisans - Web Design Latest News","og_description":"In this beginner's guide, we will expand your understanding of Laravel, and discuss it's benefits for web scalable applications.","og_url":"https:\/\/web-design-eastbourne.co.uk\/News\/understanding-laravel-framework-the-basics\/","og_site_name":"Web Design Latest News","article_publisher":"https:\/\/www.facebook.com\/ScriptedArtWebDesign\/","article_author":"https:\/\/www.facebook.com\/keir.chapman.9\/","article_published_time":"2023-11-18T16:43:55+00:00","article_modified_time":"2024-02-24T16:53:44+00:00","og_image":[{"width":300,"height":260,"url":"https:\/\/web-design-eastbourne.co.uk\/News\/wp-content\/uploads\/2023\/11\/laravel-framework-logo-C10176EC8C-seeklogo.com_.png","type":"image\/png"}],"author":"Keir Chapman","twitter_card":"summary_large_image","twitter_creator":"@scriptedart","twitter_site":"@scriptedart","twitter_misc":{"Written by":"Keir Chapman","Estimated reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/web-design-eastbourne.co.uk\/News\/understanding-laravel-framework-the-basics\/#article","isPartOf":{"@id":"https:\/\/web-design-eastbourne.co.uk\/News\/understanding-laravel-framework-the-basics\/"},"author":{"name":"Keir Chapman","@id":"https:\/\/web-design-eastbourne.co.uk\/News\/#\/schema\/person\/52653b471130e58f9af7a0b6168fa59a"},"headline":"Understanding Laravel PHP Framework \u2013 The Laravel Tutorial for Web Artisans","datePublished":"2023-11-18T16:43:55+00:00","dateModified":"2024-02-24T16:53:44+00:00","mainEntityOfPage":{"@id":"https:\/\/web-design-eastbourne.co.uk\/News\/understanding-laravel-framework-the-basics\/"},"wordCount":1713,"publisher":{"@id":"https:\/\/web-design-eastbourne.co.uk\/News\/#organization"},"image":{"@id":"https:\/\/web-design-eastbourne.co.uk\/News\/understanding-laravel-framework-the-basics\/#primaryimage"},"thumbnailUrl":"https:\/\/web-design-eastbourne.co.uk\/News\/wp-content\/uploads\/2023\/11\/laravel-framework-logo-C10176EC8C-seeklogo.com_.png","articleSection":["PHP"],"inLanguage":"en-GB"},{"@type":"WebPage","@id":"https:\/\/web-design-eastbourne.co.uk\/News\/understanding-laravel-framework-the-basics\/","url":"https:\/\/web-design-eastbourne.co.uk\/News\/understanding-laravel-framework-the-basics\/","name":"Understanding Laravel PHP Framework \u2013 The Laravel Tutorial for Web Artisans - Web Design Latest News","isPartOf":{"@id":"https:\/\/web-design-eastbourne.co.uk\/News\/#website"},"primaryImageOfPage":{"@id":"https:\/\/web-design-eastbourne.co.uk\/News\/understanding-laravel-framework-the-basics\/#primaryimage"},"image":{"@id":"https:\/\/web-design-eastbourne.co.uk\/News\/understanding-laravel-framework-the-basics\/#primaryimage"},"thumbnailUrl":"https:\/\/web-design-eastbourne.co.uk\/News\/wp-content\/uploads\/2023\/11\/laravel-framework-logo-C10176EC8C-seeklogo.com_.png","datePublished":"2023-11-18T16:43:55+00:00","dateModified":"2024-02-24T16:53:44+00:00","description":"In this beginner's guide, we will expand your understanding of Laravel, and discuss it's benefits for web scalable applications.","breadcrumb":{"@id":"https:\/\/web-design-eastbourne.co.uk\/News\/understanding-laravel-framework-the-basics\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/web-design-eastbourne.co.uk\/News\/understanding-laravel-framework-the-basics\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/web-design-eastbourne.co.uk\/News\/understanding-laravel-framework-the-basics\/#primaryimage","url":"https:\/\/web-design-eastbourne.co.uk\/News\/wp-content\/uploads\/2023\/11\/laravel-framework-logo-C10176EC8C-seeklogo.com_.png","contentUrl":"https:\/\/web-design-eastbourne.co.uk\/News\/wp-content\/uploads\/2023\/11\/laravel-framework-logo-C10176EC8C-seeklogo.com_.png","width":300,"height":260,"caption":"The red angular logo of Laravel, a PHP web application framework, appears above the word laravel in lowercase gray letters on a light background\u2014perfect for those interested in Understanding Laravel at a glance."},{"@type":"BreadcrumbList","@id":"https:\/\/web-design-eastbourne.co.uk\/News\/understanding-laravel-framework-the-basics\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/web-design-eastbourne.co.uk\/News\/scripted-art-web-design-latest-news\/"},{"@type":"ListItem","position":2,"name":"Understanding Laravel PHP Framework \u2013 The Laravel Tutorial for Web Artisans"}]},{"@type":"WebSite","@id":"https:\/\/web-design-eastbourne.co.uk\/News\/#website","url":"https:\/\/web-design-eastbourne.co.uk\/News\/","name":"Scripted Art Web Design News","description":"Grow with us","publisher":{"@id":"https:\/\/web-design-eastbourne.co.uk\/News\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/web-design-eastbourne.co.uk\/News\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Organization","@id":"https:\/\/web-design-eastbourne.co.uk\/News\/#organization","name":"Scripted Art Web Design News","url":"https:\/\/web-design-eastbourne.co.uk\/News\/","logo":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/web-design-eastbourne.co.uk\/News\/#\/schema\/logo\/image\/","url":"https:\/\/web-design-eastbourne.co.uk\/News\/wp-content\/uploads\/2023\/10\/HomepageHeader.gif","contentUrl":"https:\/\/web-design-eastbourne.co.uk\/News\/wp-content\/uploads\/2023\/10\/HomepageHeader.gif","width":906,"height":601,"caption":"Scripted Art Web Design News"},"image":{"@id":"https:\/\/web-design-eastbourne.co.uk\/News\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/ScriptedArtWebDesign\/","https:\/\/x.com\/scriptedart","https:\/\/www.youtube.com\/@scriptedart9508","https:\/\/www.pinterest.co.uk\/ScriptedArt\/"]},{"@type":"Person","@id":"https:\/\/web-design-eastbourne.co.uk\/News\/#\/schema\/person\/52653b471130e58f9af7a0b6168fa59a","name":"Keir Chapman","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/b5ad7430b93b73105b405f21a65e815c83b99649782f316c6ec41fc628b32445?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/b5ad7430b93b73105b405f21a65e815c83b99649782f316c6ec41fc628b32445?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b5ad7430b93b73105b405f21a65e815c83b99649782f316c6ec41fc628b32445?s=96&d=mm&r=g","caption":"Keir Chapman"},"description":"I am a self-motivated, passionate website designer and developer. I have over ten years of experience in building websites and have developed a broad skill set including web design, frontend and backend development, and SEO. Using my growing knowledge base I have built my own company (scriptedart.co.uk) creating websites,\u00a0e-commerce stores and producing custom graphics and web app functionality for a range of local businesses.","sameAs":["https:\/\/keirchapman.co.uk\/","https:\/\/www.facebook.com\/keir.chapman.9\/","https:\/\/www.linkedin.com\/in\/keir-chapman-6a138158\/"],"url":"https:\/\/web-design-eastbourne.co.uk\/News\/author\/webdesigneastbournenewsblogadmin7\/"}]}},"_links":{"self":[{"href":"https:\/\/web-design-eastbourne.co.uk\/News\/wp-json\/wp\/v2\/posts\/621","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/web-design-eastbourne.co.uk\/News\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/web-design-eastbourne.co.uk\/News\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/web-design-eastbourne.co.uk\/News\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/web-design-eastbourne.co.uk\/News\/wp-json\/wp\/v2\/comments?post=621"}],"version-history":[{"count":3,"href":"https:\/\/web-design-eastbourne.co.uk\/News\/wp-json\/wp\/v2\/posts\/621\/revisions"}],"predecessor-version":[{"id":13670,"href":"https:\/\/web-design-eastbourne.co.uk\/News\/wp-json\/wp\/v2\/posts\/621\/revisions\/13670"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/web-design-eastbourne.co.uk\/News\/wp-json\/wp\/v2\/media\/628"}],"wp:attachment":[{"href":"https:\/\/web-design-eastbourne.co.uk\/News\/wp-json\/wp\/v2\/media?parent=621"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/web-design-eastbourne.co.uk\/News\/wp-json\/wp\/v2\/categories?post=621"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/web-design-eastbourne.co.uk\/News\/wp-json\/wp\/v2\/tags?post=621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}